From 2830095b0787511beb09f5803f7ed1ca2333cce2 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Mon, 27 Apr 2015 21:35:40 -0400 Subject: [PATCH] Return only module_name for ad hoc command name. --- awx/api/serializers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 37ea12b6a7..e358d86c3b 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -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