mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
remove credential from node and schedule summary fields
This commit is contained in:
parent
e982f6ed06
commit
0f66892d06
@ -3107,6 +3107,12 @@ class LaunchConfigurationBaseSerializer(BaseSerializer):
|
||||
ret['extra_data'] = obj.display_extra_data()
|
||||
return ret
|
||||
|
||||
def get_summary_fields(self, obj):
|
||||
summary_fields = super(LaunchConfigurationBaseSerializer, self).get_summary_fields(obj)
|
||||
# Credential would be an empty dictionary in this case
|
||||
summary_fields.pop('credential', None)
|
||||
return summary_fields
|
||||
|
||||
def validate(self, attrs):
|
||||
attrs = super(LaunchConfigurationBaseSerializer, self).validate(attrs)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user