cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: cloudmonkey: warn users to set url if they set host, port, protocol, path
Date Tue, 19 Aug 2014 13:13:35 GMT
Repository: cloudstack-cloudmonkey
Updated Branches:
  refs/heads/master e978187e9 -> b66b7dd62


cloudmonkey: warn users to set url if they set host, port, protocol, path

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/b66b7dd6
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/b66b7dd6
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/b66b7dd6

Branch: refs/heads/master
Commit: b66b7dd62cebd77b0f1d74046170810e931fe852
Parents: e978187
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Tue Aug 19 15:12:55 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Tue Aug 19 15:12:55 2014 +0200

----------------------------------------------------------------------
 cloudmonkey/cloudmonkey.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/b66b7dd6/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py
index 6eda3f7..ac42944 100644
--- a/cloudmonkey/cloudmonkey.py
+++ b/cloudmonkey/cloudmonkey.py
@@ -408,6 +408,9 @@ class CloudMonkeyShell(cmd.Cmd, object):
         """
         args = args.strip().partition(" ")
         key, value = (args[0], args[2])
+        if key in ['host', 'port', 'path', 'protocol']:
+            print "This parameter has been deprecated, please set 'url' instead"
+            return
         setattr(self, key, value)  # keys and attributes should have same names
         write_config(self.get_attr, self.config_file)
         read_config(self.get_attr, self.set_attr, self.config_file)


Mime
View raw message