Skip to content

Commit

Permalink
Merge "Python 3 fix '+' operand in dict_items"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jan 6, 2015
2 parents e56322d + 3208713 commit a731711
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rally/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(self, message=None, **kwargs):
pass

if "%(message)s" in self.msg_fmt:
kwargs = dict(kwargs.items() + {"message": message}.items())
kwargs.update({"message": message})

try:
message = self.msg_fmt % kwargs
Expand Down
3 changes: 2 additions & 1 deletion rally/osclients.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def keystone(self):
"timeout": CONF.openstack_client_http_timeout,
"insecure": CONF.https_insecure, "cacert": CONF.https_cacert
}
kw = dict(self.endpoint.to_dict().items() + new_kw.items())
kw = self.endpoint.to_dict()
kw.update(new_kw)
if kw["endpoint_type"] == consts.EndpointType.PUBLIC:
mgmt_url = parse.urlparse(kw["auth_url"])
if (mgmt_url.port != kw["admin_port"] and
Expand Down

0 comments on commit a731711

Please sign in to comment.