From 30e5b2dd6cfc3061cad5c6680e07f4657af7e5f5 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 4 Oct 2012 13:26:22 -0400 Subject: [PATCH] setup nova connection in __init__ --- PLC/API.py | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.47.0