cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [1/3] git commit: requester: use a better error message when urls don't start with http/s
Date Wed, 20 Aug 2014 23:48:52 GMT
Repository: cloudstack-cloudmonkey
Updated Branches:
  refs/heads/master b66b7dd62 -> 264ddcecb


requester: use a better error message when urls don't start with http/s

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

Branch: refs/heads/master
Commit: eff67a3060cf8ec63b62ac6cf31b15390dd8cbd0
Parents: b66b7dd
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Thu Aug 21 01:14:46 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Thu Aug 21 01:14:46 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/eff67a30/cloudmonkey/requester.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/requester.py b/cloudmonkey/requester.py
index 7073e79..d6d193b 100644
--- a/cloudmonkey/requester.py
+++ b/cloudmonkey/requester.py
@@ -143,7 +143,8 @@ def make_request(command, args, logger, url,
     error = None
 
     if not url.startswith('http'):
-        error = "Protocol must be 'http' or 'https'"
+        error = "Server URL should start with 'http' or 'https', " + \
+                "please check and fix the url"
         return None, error
 
     if args is None:


Mime
View raw message