Skip to content

Commit

Permalink
support new gnocchiclient interface
Browse files Browse the repository at this point in the history
support for explicitly setting interface/regoin_name was changed in
gnocchiclient 3.1 and remove in gnocchiclient 4.

Closes-Bug: #1714483
Change-Id: I851e16f537f547fb3a31fb22535dd4dae62fb235
(cherry picked from commit c49546b)
  • Loading branch information
chungg committed Sep 5, 2017
1 parent d17d437 commit ef3cff8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ceilometer/gnocchi_client.py
Expand Up @@ -31,10 +31,10 @@ def get_gnocchiclient(conf, timeout_override=False):
pool_maxsize=conf.max_parallel_requests)
session.mount("http://", adapter)
session.mount("https://", adapter)
return client.Client('1', session,
interface=conf[group].interface,
region_name=conf[group].region_name,
adapter_options={'connect_retries': 3})
return client.Client(
'1', session, adapter_options={'connect_retries': 3,
'interface': conf[group].interface,
'region_name': conf[group].region_name})


# NOTE(sileht): This is the initial resource types created in Gnocchi
Expand Down

0 comments on commit ef3cff8

Please sign in to comment.