Skip to content

Commit

Permalink
apply recursive path update after duplicating workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Feb 14, 2023
1 parent 1482106 commit 307339b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion eNMS/models/automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def post_update(self):
self.path = f"{self.workflows[0].path}>{self.id}"
else:
self.path = str(self.id)
print(self.name, self.path)
self.set_name()
return self.to_dict(include=["services", "workflows"])

Expand Down
1 change: 1 addition & 0 deletions eNMS/models/services/workflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def duplicate(self, workflow=None, clone=None):
)
)
db.session.commit()
clone.recursive_update()
return clone

@property
Expand Down

0 comments on commit 307339b

Please sign in to comment.