setup nova connection in __init__
[plcapi.git] / PLC / Method.py
index 12a5453..23edff6 100644 (file)
@@ -64,7 +64,6 @@ w
     def __init__(self, api,caller=None):
         self.name = self.__class__.__name__
         self.api = api
-        self.api.admin_shell = NovaShell()
         self.api.client_shell = None
 
         if caller: 
@@ -321,7 +320,7 @@ w
     def authenticate(self, auth):
 
         # establish nova connection
-        self.api.client_shell = NovaShell(user=auth['Username'],
+        self.api.client_shell = NovaShell(username=auth['Username'],
                                   password=auth['AuthString'],
                                   tenant=auth['Tenant'])
         self.api.client_shell.authenticate()