Browse Source

Merge "Specify timeout for _get_token REST API request in cert-mon"

changes/97/790497/1
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
40cc51eeaa
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      sysinv/sysinv/sysinv/sysinv/cert_mon/utils.py

+ 2
- 2
sysinv/sysinv/sysinv/sysinv/cert_mon/utils.py View File

@ -422,7 +422,7 @@ def get_dc_token(region_name):
def _get_token(auth_url, auth_project, username, password, user_domain,
project_domain, region_name):
project_domain, region_name, timeout=60):
"""
Ask OpenStack Keystone for a token
Returns: token object or None on failure
@ -453,7 +453,7 @@ def _get_token(auth_url, auth_project, username, password, user_domain,
request_info.add_data(payload)
request = urlopen(request_info)
request = urlopen(request_info, timeout=timeout)
# Identity API v3 returns token id in X-Subject-Token
# response header.
token_id = request.info().getheader('X-Subject-Token')


Loading…
Cancel
Save