Merge pull request #3042 from coreos-inc/fix-robot-metadata-json-default
Default for robot account metadata should be an empty dict, not a string
This commit is contained in:
commit
0c7c9a7a0a
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