mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
Only update name if already present in result, so it won't show up for cancel/relaunch.
This commit is contained in:
parent
cc8a39e6d9
commit
cffb2f324f
@ -1590,7 +1590,8 @@ class AdHocCommandSerializer(UnifiedJobSerializer):
|
||||
ret['credential'] = None
|
||||
# For the UI, only module_name is returned for name, instead of the
|
||||
# longer module name + module_args format.
|
||||
ret['name'] = obj.module_name
|
||||
if 'name' in ret:
|
||||
ret['name'] = obj.module_name
|
||||
return ret
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user