[ui][commands] Duplicate/UpgradeNode: return created Node instances

This commit is contained in:
Yann Lanthony 2018-07-26 22:00:27 +02:00
parent 734540abba
commit 830173047c
3 changed files with 9 additions and 9 deletions

View file

@ -482,7 +482,7 @@ class Graph(BaseObject):
except (KeyError, ValueError) as e:
logging.warning("Failed to restore edge {} -> {}: {}".format(src, dst, str(e)))
return inEdges, outEdges
return upgradedNode, inEdges, outEdges
def upgradeAllNodes(self):
""" Upgrade all upgradable CompatibilityNode instances in the graph. """