Update keystoneauth exception name

The execption is HttpException

Change-Id: I3783b4faaef2ee4bc045a0ad3dc9ff671cc1290d
This commit is contained in:
Monty Taylor 2019-08-26 16:20:58 +02:00
parent dd40f5ed9f
commit 8e3fec5388
1 changed files with 1 additions and 1 deletions

View File

@ -694,7 +694,7 @@ def ansible_main():
delete_after=p.get('delete_after', 15552000),
prefix=p.get('prefix'),
public=p.get('public'))
except (keystoneauth1.exceptions.http.HTTPError,
except (keystoneauth1.exceptions.http.HttpError,
requests.exceptions.RequestException) as e:
module.fail_json(
changed=False,