Default for robot account metadata should be an empty dict, not a string
This commit is contained in:
parent
0e7e08564f
commit
f6b647bd61
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ def create_robot(robot_shortname, parent, description='', unstructured_metadata=
|
|||
|
||||
|
||||
def get_or_create_robot_metadata(robot):
|
||||
defaults = dict(description='', unstructured_json='{}')
|
||||
defaults = dict(description='', unstructured_json={})
|
||||
metadata, _ = RobotAccountMetadata.get_or_create(robot_account=robot, defaults=defaults)
|
||||
return metadata
|
||||
|
||||
|
|
Reference in a new issue