core, frontends: add method asyncDeleteProfile, remove synchronous methods createProfile and deleteProfile
This commit is contained in:
parent
528ceb5f8b
commit
d158589881
1 changed files with 47 additions and 82 deletions
|
|
@ -42,7 +42,7 @@ class ProfileDelete(base.CommandBase):
|
|||
if self.args.profile not in self.host.bridge.getProfilesList():
|
||||
error("Profile %s doesn't exist." % self.args.profile)
|
||||
self.host.quit(1)
|
||||
self.host.bridge.deleteProfile(self.args.profile)
|
||||
self.host.bridge.asyncDeleteProfile(self.args.profile, callback=lambda dummy: None)
|
||||
|
||||
|
||||
class ProfileInfo(base.CommandBase):
|
||||
|
|
|
|||
Loading…
Reference in a new issue