[2.8] Fix STS assume role error message when role does not exist (#63305)

* Fix STS assume role error message when role does not exist (#63249)

AWS appears to have changed this error message again.
Fixes https://app.shippable.com/github/ansible/ansible/runs/145643/115/tests

* [2.8] Fix STS assume role error message when role does not exist

* fix changelog sanity
pull/63361/head
Jill R 6 years ago committed by Toshio Kuratomi
parent ca830ef42d
commit 2ccfc29b7e

@ -0,0 +1,2 @@
bugfixes:
- sts_assume_role - fix assertion text in integration test

@ -290,14 +290,14 @@
assert:
that:
- 'result.failed'
- "'Access denied' in result.msg"
- "'is not authorized to perform: sts:AssumeRole' in result.msg"
when: result.module_stderr is not defined
- name: assert assume not existing sts role
assert:
that:
- 'result.failed'
- "'Access denied' in result.module_stderr"
- "'is not authorized to perform: sts:AssumeRole' in result.msg"
when: result.module_stderr is defined
# ============================================================

Loading…
Cancel
Save