Skip to content

Commit 60636a8

Browse files
author
lijianguo
committed
fix(controller): fix update resources bug
1 parent f898fa6 commit 60636a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rootfs/api/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ def update(self, instance, validated_data):
735735
if instance.plan.split(':')[0] != validated_data.get('plan', '').split(':')[0]: # noqa
736736
raise DryccException("the resource cann't changed")
737737
instance.plan = validated_data.get('plan')
738-
instance.options = validated_data.get('options')
738+
instance.options.update(validated_data.get('options', {}))
739739
instance.attach_update()
740740
instance.save()
741741
return instance

0 commit comments

Comments
 (0)