Only update name if already present in result, so it won't show up for cancel/relaunch.

This commit is contained in:
Chris Church 2015-05-01 13:39:54 -04:00
parent cc8a39e6d9
commit cffb2f324f

View File

@ -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