mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cli: Cosmetic fix for prompt of cloudmonkey
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
7235ba35ad
commit
c13f0199f4
@ -95,7 +95,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
|
|||||||
print "Please fix `%s` config in %s" % (key, self.config_file)
|
print "Please fix `%s` config in %s" % (key, self.config_file)
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
self.prompt += " " # Cosmetic fix for prompt
|
self.prompt = self.prompt.strip() + " " # Cosmetic fix for prompt
|
||||||
logging.basicConfig(filename=self.log_file,
|
logging.basicConfig(filename=self.log_file,
|
||||||
level=logging.DEBUG, format=log_fmt)
|
level=logging.DEBUG, format=log_fmt)
|
||||||
logger.debug("Loaded config fields:\n%s" % self.config_fields)
|
logger.debug("Loaded config fields:\n%s" % self.config_fields)
|
||||||
@ -421,7 +421,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
|
|||||||
args = args.strip().partition(" ")
|
args = args.strip().partition(" ")
|
||||||
key, value = (args[0], args[2])
|
key, value = (args[0], args[2])
|
||||||
setattr(self, key, value) # keys and attributes should have same names
|
setattr(self, key, value) # keys and attributes should have same names
|
||||||
self.prompt += " " # prompt fix
|
self.prompt = self.prompt.strip() + " " # prompt fix
|
||||||
self.write_config()
|
self.write_config()
|
||||||
|
|
||||||
def complete_set(self, text, line, begidx, endidx):
|
def complete_set(self, text, line, begidx, endidx):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user