mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03: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
|
||||
if 'credential' in ret and (not obj.credential or not obj.credential.active):
|
||||
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user