fix bug checking WFJT node for prompted resources

This commit is contained in:
AlanCoding
2017-10-02 11:17:18 -04:00
committed by Matthew Jones
parent 5efa50788f
commit 3abbe87e10
2 changed files with 17 additions and 3 deletions

View File

@@ -1605,9 +1605,9 @@ class WorkflowJobTemplateNodeAccess(BaseAccess):
if 'credential' in data or 'inventory' in data:
new_data = data
if 'credential' not in data:
new_data['credential'] = self.credential
new_data['credential'] = obj.credential
if 'inventory' not in data:
new_data['inventory'] = self.inventory
new_data['inventory'] = obj.inventory
return self.can_use_prompted_resources(new_data)
return True