Repository: cloudstack-cloudmonkey Updated Branches: refs/heads/master c6318fc13 -> d2946df93
cloudmonkey: make code PEP8 compliant Signed-off-by: Rohit Yadav <rohit.ya...@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.ya...@shapeblue.com> Authored: Mon Oct 6 13:56:49 2014 +0200 Committer: Rohit Yadav <rohit.ya...@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 + ":")