setup nova connection in __init__
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 4 Oct 2012 17:26:22 +0000 (13:26 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 4 Oct 2012 17:26:22 +0000 (13:26 -0400)
PLC/API.py

index b3b60d6..16d3a61 100644 (file)
@@ -95,6 +95,7 @@ except ImportError:
 from PLC.Config import Config
 from PLC.Logger import logger
 from PLC.Faults import *
+from PLC.NovaShell import NovaShell
 import PLC.Methods
 import PLC.Accessors
 
@@ -133,6 +134,10 @@ class PLCAPI:
 
         # Load configuration
         self.config = Config(config)
+       
+        # admin connection to nova api 
+        self.admin_shell = NovaShell()
+        self.client_shell = NovaShell()
 
         # Aspects modify the API by injecting code before, after or
         # around method calls. -- http://github.com/baris/pyaspects/blob/master/README