Use "interface" option for monasca endpoint discovery
The "interface" option was ignored for endpoint discovery. This was leading to unexpected behaviour. Change-Id: Ie669d55d06e06dfe2462cc97c7a76c7f59ee4c84 Story: 2006694 Task: 36994
This commit is contained in:
@@ -103,7 +103,10 @@ class MonascaCollector(collector.BaseCollector):
|
|||||||
CONF,
|
CONF,
|
||||||
COLLECTOR_MONASCA_OPTS,
|
COLLECTOR_MONASCA_OPTS,
|
||||||
auth=self.auth)
|
auth=self.auth)
|
||||||
self.ks_client = ks_client.Client(session=self.session)
|
self.ks_client = ks_client.Client(
|
||||||
|
session=self.session,
|
||||||
|
interface=CONF.collector_monasca.interface,
|
||||||
|
)
|
||||||
self.mon_endpoint = self._get_monasca_endpoint()
|
self.mon_endpoint = self._get_monasca_endpoint()
|
||||||
if not self.mon_endpoint:
|
if not self.mon_endpoint:
|
||||||
raise EndpointNotFound()
|
raise EndpointNotFound()
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
The ``interface`` parameter of the ``collector_monasca`` section is now
|
||||||
|
also used for the discovery of the monasca endpoint.
|
||||||
Reference in New Issue
Block a user