From: Tony Mack Date: Thu, 4 Oct 2012 17:26:22 +0000 (-0400) Subject: setup nova connection in __init__ X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=30e5b2dd6cfc3061cad5c6680e07f4657af7e5f5;p=plcapi.git setup nova connection in __init__ --- diff --git a/PLC/API.py b/PLC/API.py index b3b60d66..16d3a61a 100644 --- a/PLC/API.py +++ b/PLC/API.py @@ -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