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:
josephschorr 2018-03-27 17:31:34 -04:00 committed by GitHub
commit 0c7c9a7a0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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