From 83e748e31520ffe5e29bf8a04efba96999f9cd60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Fievet?= <_@sebastien-fievet.fr> Date: Wed, 9 Mar 2016 11:19:39 +0700 Subject: [PATCH] Fix filtering by project in Cloudstask inventory --- contrib/inventory/cloudstack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/inventory/cloudstack.py b/contrib/inventory/cloudstack.py index 5911f662c94..e818aea8cff 100755 --- a/contrib/inventory/cloudstack.py +++ b/contrib/inventory/cloudstack.py @@ -109,11 +109,11 @@ class CloudStackInventory(object): project_id = self.get_project_id(options.project) if options.host: - data = self.get_host(options.host) + data = self.get_host(options.host, project_id) print(json.dumps(data, indent=2)) elif options.list: - data = self.get_list() + data = self.get_list(project_id) print(json.dumps(data, indent=2)) else: print("usage: --list | --host [--project ]",