cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [2/5] git commit: cloudmonkey: introduce management server profiles
Date Tue, 19 Aug 2014 12:36:56 GMT
cloudmonkey: introduce management server profiles

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/commit/8cc5cbd7
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/8cc5cbd7
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/8cc5cbd7

Branch: refs/heads/master
Commit: 8cc5cbd7bd236015a0a1c2529cfd42057322ca3e
Parents: 633e2fb
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Tue Aug 19 14:34:20 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Tue Aug 19 14:34:20 2014 +0200

----------------------------------------------------------------------
 cloudmonkey/cloudmonkey.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/8cc5cbd7/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py
index c43b061..6eda3f7 100644
--- a/cloudmonkey/cloudmonkey.py
+++ b/cloudmonkey/cloudmonkey.py
@@ -78,7 +78,6 @@ class CloudMonkeyShell(cmd.Cmd, object):
                             'username': self.username,
                             'password': self.password}
         self.loadcache()
-        self.prompt = self.prompt.strip() + " "  # Cosmetic fix for prompt
 
         logging.basicConfig(filename=self.log_file,
                             level=logging.DEBUG, format=log_fmt)
@@ -105,6 +104,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
 
     def cmdloop(self, intro=None):
         print(self.intro)
+        print "Using management server profile:", self.profile
         while True:
             try:
                 super(CloudMonkeyShell, self).cmdloop(intro="")
@@ -409,8 +409,8 @@ class CloudMonkeyShell(cmd.Cmd, object):
         args = args.strip().partition(" ")
         key, value = (args[0], args[2])
         setattr(self, key, value)  # keys and attributes should have same names
-        self.prompt = self.prompt.strip() + " "  # prompt fix
         write_config(self.get_attr, self.config_file)
+        read_config(self.get_attr, self.set_attr, self.config_file)
 
     def complete_set(self, text, line, begidx, endidx):
         mline = line.partition(" ")[2]


Mime
View raw message