Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Jul 11, 2019
1 parent 1418f06 commit a646150
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
4 changes: 3 additions & 1 deletion eNMS/models/automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,9 @@ class Workflow(Job):
id = Column(Integer, ForeignKey("Job.id"), primary_key=True)
use_workflow_targets = Column(Boolean, default=True)
jobs = relationship("Job", secondary=job_workflow_table, back_populates="workflows")
edges = relationship("WorkflowEdge", back_populates="workflow", cascade="all, delete-orphan")
edges = relationship(
"WorkflowEdge", back_populates="workflow", cascade="all, delete-orphan"
)

def __init__(self, **kwargs: Any) -> None:
end = fetch("Service", name="End")
Expand Down
11 changes: 1 addition & 10 deletions eNMS/models/inventory.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
from re import search
from sqlalchemy import (
Boolean,
Column,
Float,
ForeignKey,
Integer,
Numeric,
String,
Text,
)
from sqlalchemy import Boolean, Column, Float, ForeignKey, Integer, String, Text
from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy.ext.mutable import MutableDict
from sqlalchemy.orm import backref, relationship
Expand Down
1 change: 0 additions & 1 deletion eNMS/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ class Query(Resource):

def get(self, cls: str) -> Union[dict, list]:
try:
print(request.args.to_dict())
results = fetch(cls, all_matches=True, **request.args.to_dict())
return [result.get_properties() for result in results]
except InstanceNotFoundException:
Expand Down
6 changes: 5 additions & 1 deletion eNMS/services/miscellaneous/ansible_playbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

from eNMS.database import LARGE_STRING_LENGTH, SMALL_STRING_LENGTH
from eNMS.forms.automation import ServiceForm
from eNMS.forms.fields import DictSubstitutionField, NoValidationSelectField, SubstitutionField
from eNMS.forms.fields import (
DictSubstitutionField,
NoValidationSelectField,
SubstitutionField,
)
from eNMS.forms.services import ValidationForm
from eNMS.models.automation import Job, Service
from eNMS.models.inventory import Device
Expand Down

0 comments on commit a646150

Please sign in to comment.