mirror of
https://github.com/ansible/awx.git
synced 2026-06-30 02:48:03 -02:30
Make canonical field default to False
Signed-off-by: Seth Foster <fosterbseth@gmail.com>
This commit is contained in:
@@ -5612,6 +5612,7 @@ class InstanceSerializer(BaseSerializer):
|
||||
# delete the receptor address if the port is None
|
||||
instance.receptor_addresses.filter(address=instance.hostname).delete()
|
||||
elif kwargs:
|
||||
kwargs['canonical'] = True
|
||||
instance.receptor_addresses.update_or_create(address=instance.hostname, defaults=kwargs)
|
||||
|
||||
return instance
|
||||
|
||||
Reference in New Issue
Block a user