Skip to content

Commit

Permalink
fix build task refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Jun 21, 2019
1 parent b402927 commit 8182456
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eNMS/models/automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def delete_task(self) -> None:
controller.scheduler.remove_job(self.aps_job_id)
Session.commit()

def compute_targets(self):
def compute_targets(self) -> Set[int]:
targets = {device.id for device in self.devices}
for pool in self.pools:
targets |= {device.id for device in pool.devices}
Expand Down
2 changes: 1 addition & 1 deletion eNMS/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def post(self, cls: str) -> dict:
Session.commit()
return result
except Exception as exc:
abort(500, message=f"Update failed ({exc})")
return abort(500, message=f"Update failed ({exc})")


class Migrate(Resource):
Expand Down

0 comments on commit 8182456

Please sign in to comment.