Skip to content

Commit

Permalink
Makes upgrade's new_module accept ModuleDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Jul 27, 2015
1 parent 5155573 commit 651bebe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vistrails/core/upgradeworkflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,8 @@ def outputName_remap(old_conn, new_module):
elif isinstance(new_module_type, basestring):
new_module_t = parse_descriptor_string(new_module_type,
old_module_t[0])
elif isinstance(new_module_type, ModuleDescriptor):
new_module_t = new_module_type.spec_tuple
else:
new_module_desc = reg.get_descriptor(new_module_type)
new_module_t = new_module_desc.spec_tuple
Expand Down

0 comments on commit 651bebe

Please sign in to comment.