Fix STONITH script creation for Liberty/Mitaka

Without using positional arguments inside the connection function in the
template for the stonith script creation the backward compatibility is
broken. This commit fix this by using again positional arguments and it
will fix Liberty/OSP8 and Mitaka/OSP9 deployments.

Change-Id: I49920dd23e372e034706d49a15d6f91a0a248bd8
This commit is contained in:
Raoul Scarazzini 2018-03-29 10:39:58 -04:00
parent a05aa6acbe
commit 8fc618c3d3
1 changed files with 4 additions and 4 deletions

View File

@ -41,10 +41,10 @@ if (fence_devices in ['controllers','all']):
# Connect to nova
try:
nt = client.Client(2,
auth_url=os_auth_url,
username=os_username,
password=os_password,
project_id=os_tenant_name)
os_username,
os_password,
os_tenant_name,
os_auth_url)
except:
nt = client.Client(2,
auth_url=os_auth_url,