Ensure NVP API connection port is always an integer
Convert the 'port' part of a NVP endpoint to int before passing it to the NVP API client. Change-Id: I15137d943ab950cb5cc80d7af2971bce3ac1a265 Closes-Bug: #1255519
This commit is contained in:
parent
39c392ed8e
commit
6371d1b1d1
|
@ -103,7 +103,11 @@ def create_nvp_cluster(cluster_opts, concurrent_connections,
|
|||
config.register_deprecated(cfg.CONF)
|
||||
# ### END
|
||||
cluster = nvp_cluster.NVPCluster(**cluster_opts)
|
||||
api_providers = [ctrl.split(':') + [True]
|
||||
|
||||
def _ctrl_split(x, y):
|
||||
return (x, int(y), True)
|
||||
|
||||
api_providers = [_ctrl_split(*ctrl.split(':'))
|
||||
for ctrl in cluster.nvp_controllers]
|
||||
cluster.api_client = NvpApiClient.NVPApiHelper(
|
||||
api_providers, cluster.nvp_user, cluster.nvp_password,
|
||||
|
|
Loading…
Reference in New Issue