Skip to content

Commit

Permalink
Merge "Use endpoint_override in version negotiation"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Mar 20, 2019
2 parents ef992f6 + 8071d5d commit c038f1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ironicclient/common/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,8 @@ def _make_simple_request(self, conn, method, url):
# NOTE: conn is self.session for this class
return conn.request(url, method, raise_exc=False,
user_agent=USER_AGENT,
endpoint_filter=endpoint_filter)
endpoint_filter=endpoint_filter,
endpoint_override=self.endpoint_override)

@with_retries
def _http_request(self, url, method, **kwargs):
Expand Down
1 change: 1 addition & 0 deletions ironicclient/tests/unit/common/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ def test_make_simple_request(self):
'service_type': 'baremetal',
'region_name': ''
},
endpoint_override='http://127.0.0.1',
user_agent=http.USER_AGENT)
self.assertEqual(res, session.request.return_value)

Expand Down

0 comments on commit c038f1d

Please sign in to comment.