Add ability to work with openstack nova power type
Change-Id: I1a8a96a5e1f49383bf54b977ba4903b86dbe818f
diff --git a/_modules/maas.py b/_modules/maas.py
index 329a467..1e974cb 100644
--- a/_modules/maas.py
+++ b/_modules/maas.py
@@ -423,6 +423,16 @@
power_data['power_password']
if 'power_id' in power_data:
data['power_parameters_power_id'] = power_data['power_id']
+ if 'power_nova_id' in power_data:
+ data['power_parameters_nova_id'] = power_data['power_nova_id']
+ if 'power_os_tenantname' in power_data:
+ data['power_parameters_os_tenantname'] = power_data['power_os_tenantname']
+ if 'power_os_username' in power_data:
+ data['power_parameters_os_username'] = power_data['power_os_username']
+ if 'power_os_password' in power_data:
+ data['power_parameters_os_password'] = power_data['power_os_password']
+ if 'power_os_authurl' in power_data:
+ data['power_parameters_os_authurl'] = power_data['power_os_authurl']
return data
def update(self, new, old):