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