Py3: fix an error when adding two dict_items
Fix the following error "TypeError: unsupported operand type(s) for +: 'dict_items' and 'dict_items'" on Python3. This is the only occurence of this pattern, as far as I can tell. Change-Id: I3d926c56648f8ae0b28abfd8ca1806134ba3df41
This commit is contained in:
parent
0caa891d38
commit
81c427dfc5
@ -61,7 +61,7 @@ class ServersClient(base_compute_client.BaseComputeClient):
|
||||
post_body = {'server': body}
|
||||
|
||||
if hints:
|
||||
post_body = dict(post_body.items() + hints.items())
|
||||
post_body.update(hints)
|
||||
|
||||
post_body = json.dumps(post_body)
|
||||
resp, body = self.post('servers', post_body)
|
||||
|
Loading…
Reference in New Issue
Block a user