aboutsummaryrefslogtreecommitdiffstats
path: root/app/discover/fetchers/db/db_fetch_az_network_hosts.py
diff options
context:
space:
mode:
authoryayogev <yaronyogev@gmail.com>2017-08-28 13:45:07 +0300
committeryayogev <yaronyogev@gmail.com>2017-08-28 13:45:07 +0300
commit7928f7a3130d6c490258cd7086b663dc15bcd633 (patch)
treeae2ff7743a6c70ec9c5979d7e03864191198ef1e /app/discover/fetchers/db/db_fetch_az_network_hosts.py
parent834c0f5899a7823ce77453aae4add76245b794c6 (diff)
use neutron DB name, not always 'neutron'
Change-Id: I971f22473d4132bde17e0a44ada3b6a8330522b4 Signed-off-by: yayogev <yaronyogev@gmail.com>
Diffstat (limited to 'app/discover/fetchers/db/db_fetch_az_network_hosts.py')
-rw-r--r--app/discover/fetchers/db/db_fetch_az_network_hosts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/discover/fetchers/db/db_fetch_az_network_hosts.py b/app/discover/fetchers/db/db_fetch_az_network_hosts.py
index 09043ea..700b1cd 100644
--- a/app/discover/fetchers/db/db_fetch_az_network_hosts.py
+++ b/app/discover/fetchers/db/db_fetch_az_network_hosts.py
@@ -17,9 +17,9 @@ class DbFetchAZNetworkHosts(DbAccess):
def get(self, id):
query = """
SELECT DISTINCT host, host AS id, configurations
- FROM neutron.agents
+ FROM {}.agents
WHERE agent_type = 'Metadata agent'
- """
+ """.format(self.neutron_db)
results = self.get_objects_list(query, "host")
for r in results:
self.set_host_details(r)