aboutsummaryrefslogtreecommitdiffstats
path: root/app/discover/fetchers/db/db_fetch_az_network_hosts.py
diff options
context:
space:
mode:
authorYaron Yogev <yaronyogev@gmail.com>2017-08-28 10:50:08 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-28 10:50:08 +0000
commitf177fd1f19170d544421038f34c8ad8e7e23b607 (patch)
tree98440d22b303565070bdd4de8dca2d7df484002c /app/discover/fetchers/db/db_fetch_az_network_hosts.py
parentfa261f0350cce233cd01f4a078be309ae3b4981a (diff)
parent7928f7a3130d6c490258cd7086b663dc15bcd633 (diff)
Merge "use neutron DB name, not always 'neutron'"
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)