X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fclient%2Fsfi.py;h=26ec1f473762ddb672c16b7eb0ab945c272ce156;hb=e82606bfe3292153e2cf42c1aeb2c1d621a4a872;hp=16398716f1fa564bf9f8f349792763bfeeff9225;hpb=61834728d734e61d431890c8506428d3c31ab5a9;p=sfa.git diff --git a/sfa/client/sfi.py b/sfa/client/sfi.py index 16398716..26ec1f47 100644 --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@ -284,7 +284,8 @@ class Sfi: self.logger.enable_console() ### various auxiliary material that we keep at hand self.command=None - self.config=None + # need to call this other than just 'config' as we have a command/method with that name + self.config_instance=None self.config_file=None self.client_bootstrap=None @@ -573,7 +574,7 @@ use this if you mean an authority instead""") self.logger.log_exc("Could not read config file %s"%config_file) sys.exit(1) - self.config=config + self.config_instance=config errors = 0 # Set SliceMgr URL if (self.options.sm is not None): @@ -1500,7 +1501,7 @@ $ sfi m myslice_keys=['backend', 'delegate', 'platform', 'username'] for key in myslice_keys: full_key="MYSLICE_" + key.upper() - value=getattr(self.config,full_key,None) + value=getattr(self.config_instance,full_key,None) if value: myslice_dict[key]=value else: print "Unsufficient config, missing key %s in [myslice] section of sfi_config"%key if len(myslice_dict) != len(myslice_keys):