Set initial value node_type and node_state

This commit is contained in:
Seth Foster 2022-09-21 12:55:45 -04:00 committed by Jeff Bradberry
parent 5b7a359c91
commit c53228daf5

View File

@ -4913,7 +4913,7 @@ class InstanceSerializer(BaseSerializer):
'ip_address',
'listener_port',
)
extra_kwargs = {'node_type': {'default': 'execution'}, 'node_state': {'default': 'installed'}}
extra_kwargs = {'node_type': {'initial': 'execution'}, 'node_state': {'initial': 'installed'}}
def get_related(self, obj):
res = super(InstanceSerializer, self).get_related(obj)