X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fopenstack%2Fshell.py;h=fb6320a7da3917b45ba24585e750529a6fdbb6ad;hb=fd395e1944dcd49f10a4d5b27ce4983ad389fb96;hp=7fab67f8ce4c1e5e18ad8280b07b00d4c5410370;hpb=e8b16b96a23e1ab54e780587cc7cc0345a1ddf0e;p=sfa.git diff --git a/sfa/openstack/shell.py b/sfa/openstack/shell.py index 7fab67f8..fb6320a7 100644 --- a/sfa/openstack/shell.py +++ b/sfa/openstack/shell.py @@ -1,5 +1,4 @@ import sys -import xmlrpclib import socket import gettext from urlparse import urlparse @@ -13,27 +12,26 @@ except: has_nova = False - class Shell: """ A simple native shell to a nova backend. This class can receive all nova calls to the underlying testbed """ - - # dont care about limiting calls yet + + # dont care about limiting calls yet direct_calls = [] alias_calls = {} - - # use the 'capability' auth mechanism for higher performance when the PLC db is local - def __init__ ( self, config=None) : + # use the 'capability' auth mechanism for higher performance when the PLC + # db is local + def __init__(self, config=None): if not config: config = Config() if has_nova: - # instantiate managers - self.auth_manager = KeystoneClient(config) - self.image_manager = GlanceClient(config) - self.nova_manager = NovaClient(config) + # instantiate managers + self.auth_manager = KeystoneClient(config=config) + self.image_manager = GlanceClient(config=config) + self.nova_manager = NovaClient(config=config) else: logger.debug('nova access - REST') raise SfaNotImplemented('nova access - Rest')