cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [1/4] git commit: cloudmonkey: make code PEP8 compliant
Date Mon, 06 Oct 2014 12:09:42 GMT
Repository: cloudstack-cloudmonkey
Updated Branches:
  refs/heads/master c6318fc13 -> d2946df93


cloudmonkey: make code PEP8 compliant

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

Branch: refs/heads/master
Commit: 849f6a9a1c0fe12feb0e48a88f03edaf31213df0
Parents: c6318fc
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Mon Oct 6 13:56:49 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Oct 6 13:56:49 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/849f6a9a/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py
index e137aab..6e552a6 100644
--- a/cloudmonkey/cloudmonkey.py
+++ b/cloudmonkey/cloudmonkey.py
@@ -257,14 +257,14 @@ class CloudMonkeyShell(cmd.Cmd, object):
                               x not in ['id', 'count', 'name'] and x):
                 if not (isinstance(result[key], list) or
                         isinstance(result[key], dict)):
-                    if result_filter != None and key not in result_filter:
+                    if result_filter is not None and key not in result_filter:
                         continue
-                    if result_filter != None and len(result_filter) == 1:
+                    if result_filter is not None and len(result_filter) == 1:
                         self.monkeyprint(result[key])
                     else:
                         self.monkeyprint("%s = %s" % (key, result[key]))
                 else:
-                    if result_filter != None and key not in result_filter:
+                    if result_filter is not None and key not in result_filter:
                         self.print_result(result[key], result_filter)
                         continue
                     self.monkeyprint(key + ":")


Mime
View raw message