mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 20:50:06 -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
|
||||
# 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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user