Browse Source

HUE-7616 [editor] Shell job fails with TypeError: for +: 'dict' and
'str'

jdesjean 8 years ago
parent
commit
189ef93
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/oozie/src/oozie/models2.py

+ 1 - 1
apps/oozie/src/oozie/models2.py

@@ -850,7 +850,7 @@ class Node():
         self.data['properties']['capture_output'] = action['properties']['capture_output']
         self.data['properties']['arguments'] = [{'value': prop} for prop in action['properties']['arguments']]
 
-        self.data['properties']['files'] = ([{'value': action['properties']['command_path']}] if not action['properties'].get('command_path', '').startswith('/') else []) + [{'value': prop} for prop in action['properties']['files']]
+        self.data['properties']['files'] = ([{'value': action['properties']['command_path']}] if not action['properties'].get('command_path', '').startswith('/') else []) + [{'value': prop.get('path', prop)} for prop in action['properties']['files']]
         self.data['properties']['archives'] = [{'value': prop} for prop in action['properties']['archives']]
 
     elif self.data['type'] == MapReduceDocumentAction.TYPE: