Skip to content
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.

Commit

Permalink
Merge pull request #25 from helium/bugfix/attributes
Browse files Browse the repository at this point in the history
Don't pop attributes on resource creation
  • Loading branch information
madninja authored Feb 27, 2017
2 parents 51d50b7 + 24ba1b0 commit cb333c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helium/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def _update_attributes(self, json):
# promote id
self.id = json.get('id', None)
# promote all top level attributes
for (k, v) in iteritems(json.pop('attributes', {})):
for (k, v) in iteritems(json.get('attributes', {})):
self._promote_json_attribute(k, v)
# process includes if specified
if self._include is not None:
Expand Down

0 comments on commit cb333c1

Please sign in to comment.