cloudmonkey: duplicate filter break output, print using unique ones Signed-off-by: Rohit Yadav <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/commit/088001e7 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/088001e7 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/088001e7 Branch: refs/heads/master Commit: 088001e7acabb2e2c16a18f2ade84b500c8b5bb6 Parents: a1e1023 Author: Rohit Yadav <[email protected]> Authored: Fri Oct 31 15:03:38 2014 +0530 Committer: Rohit Yadav <[email protected]> Committed: Fri Oct 31 15:03:38 2014 +0530 ---------------------------------------------------------------------- cloudmonkey/cloudmonkey.py | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/088001e7/cloudmonkey/cloudmonkey.py ---------------------------------------------------------------------- diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py index 08ccb4d..4857723 100644 --- a/cloudmonkey/cloudmonkey.py +++ b/cloudmonkey/cloudmonkey.py @@ -366,6 +366,7 @@ class CloudMonkeyShell(cmd.Cmd, object): field_filter = filter(lambda x: x is not '', map(lambda x: x.strip(), args_dict.pop('filter').split(','))) + field_filter = list(set(field_filter)) missing = [] if verb in self.apicache and subject in self.apicache[verb]:
