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

data.iteritems given a dictionary to iterate#3

Open
MarkMarine wants to merge 3 commits intoStackdriver:masterfrom
MarkMarine:master
Open

data.iteritems given a dictionary to iterate#3
MarkMarine wants to merge 3 commits intoStackdriver:masterfrom
MarkMarine:master

Conversation

@MarkMarine
Copy link

data is a list object, and when merging in it was called with
.iteritems() but list objects don't have .iteritems() and this
fails when called. data[0] is the first dictionary returned from
the stackdriver response. This corrects the bug.

Mark Fox added 2 commits December 18, 2014 11:42
data is a list object, and when merging in it was called with
.iteritems() but list objects don't have .iteritems() and this
 fails when called. data[0] is the first dictionary returned from
 the stackdriver response. This corrects the bug.
When merging keys in, we have a list. When GET runs it's using
a dictionary already, so we don't need [0]
@MarkMarine
Copy link
Author

I fixed the CREATE but broke GET. This is corrected by ac4f02a

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant