From 7d08fc867f025ab992c481c4b151ce9004023449 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 14 Sep 2012 11:36:20 -0400 Subject: [PATCH] added authenticate() --- PLC/NovaShell.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/PLC/NovaShell.py b/PLC/NovaShell.py index ca07fdb1..68940ad0 100644 --- a/PLC/NovaShell.py +++ b/PLC/NovaShell.py @@ -22,7 +22,7 @@ def parse_novarc(filename): class Client: - def __init__(self, username=None, password=None, tenant=None, url=None, config=None): + def __init__(self, username=None, password=None, tenant=None, url=None, config=None, *args, **kwds): if config: config = Config(config) else: @@ -92,8 +92,11 @@ class NovaShell: This class can receive all nova calls to the underlying testbed """ - def __init__ ( self, config=None) : + def __init__ ( self, *args, **kwds) : # instantiate managers - self.keystone = KeystoneClient(config=config) - self.glance = GlanceClient(config=config) - self.nova = NovaClient(config=config) + self.keystone = KeystoneClient(*args, **kwds) + self.glance = GlanceClient(*args, **kwds) + self.nova = NovaClient(*args, **kwds) + + def authenticate(self): + return self.keystone.authenticate() -- 2.47.0