diff frontends/src/jp/cmd_profile.py @ 2221:a6c9bc4d1de0

jp (pubsub/node): added create and delete commands
author Goffi <goffi@goffi.org>
date Mon, 03 Apr 2017 00:23:01 +0200
parents e42c6c131b52
children a7438fe4e24d
line wrap: on
line diff
--- a/frontends/src/jp/cmd_profile.py	Mon Apr 03 00:23:01 2017 +0200
+++ b/frontends/src/jp/cmd_profile.py	Mon Apr 03 00:23:01 2017 +0200
@@ -65,8 +65,8 @@
         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"))