mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Return only module_name for ad hoc command name.
This commit is contained in:
@@ -1582,6 +1582,9 @@ class AdHocCommandSerializer(UnifiedJobSerializer):
|
|||||||
ret['inventory'] = None
|
ret['inventory'] = None
|
||||||
if 'credential' in ret and (not obj.credential or not obj.credential.active):
|
if 'credential' in ret and (not obj.credential or not obj.credential.active):
|
||||||
ret['credential'] = None
|
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
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user