Include listener_port in the defaults for Instance.objects.register (#13328)

This commit is contained in:
Jeff Bradberry 2022-12-19 12:16:05 -05:00 committed by GitHub
parent 821b1701bf
commit 8f6849fc22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,11 @@ class InstanceManager(models.Manager):
return (False, instance)
# Create new instance, and fill in default values
create_defaults = {'node_state': Instance.States.INSTALLED, 'capacity': 0}
create_defaults = {
'node_state': Instance.States.INSTALLED,
'capacity': 0,
'listener_port': 27199,
}
if defaults is not None:
create_defaults.update(defaults)
uuid_option = {}