jp (pubsub/node): added create and delete commands
This commit is contained in:
parent
fcbeec5fa5
commit
55b6199997
1 changed files with 107 additions and 18 deletions
|
|
@ -65,8 +65,8 @@ class ProfileDelete(base.CommandBase):
|
|||
if self.args.profile not in self.host.bridge.profilesListGet():
|
||||
log.error("Profile %s doesn't exist." % self.args.profile)
|
||||
self.host.quit(1)
|
||||
message = u"Are you sure to delete profile [{}] ?".format(self.args.profile)
|
||||
if not self.args.force:
|
||||
message = u"Are you sure to delete profile [{}] ?".format(self.args.profile)
|
||||
res = raw_input("{} (y/N)? ".format(message))
|
||||
if res not in ("y", "Y"):
|
||||
self.disp(_(u"Profile deletion cancelled"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue