Fixed switch_profile
This commit is contained in:
parent
b54920a014
commit
c62373c109
1 changed files with 3 additions and 7 deletions
|
|
@ -112,14 +112,10 @@ class Controller(exports.interfaces.ExportableInterface):
|
|||
|
||||
@exports.export("as", "b")
|
||||
def switch_profile(self, profiles):
|
||||
|
||||
print profiles
|
||||
|
||||
return False
|
||||
|
||||
cfg = profile.Profile.find_profile(profile)
|
||||
for i in range(len(profiles)):
|
||||
profiles[i] = profile.Profile.find_profile(profiles[i])
|
||||
try:
|
||||
self.config_file = cfg
|
||||
self.config_file = profiles
|
||||
except ValueError as e:
|
||||
log.error("Unable to open profile's config file %s" % (cfg) )
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in a new issue