Merge "Python 3 fix '+' operand in dict_items"
This commit is contained in:
commit
a731711988
@ -53,7 +53,7 @@ class RallyException(Exception):
|
||||
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
|
||||
|
@ -97,7 +97,8 @@ class Clients(object):
|
||||
"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
|
||||
|
Loading…
x
Reference in New Issue
Block a user