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
This commit is contained in:
parent
ed203c5902
commit
ce402f003f
1 changed files with 2 additions and 2 deletions
|
@ -290,14 +290,14 @@
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- 'result.failed'
|
- 'result.failed'
|
||||||
- "'Access denied' in result.msg"
|
- "'is not authorized to perform: sts:AssumeRole' in result.msg"
|
||||||
when: result.module_stderr is not defined
|
when: result.module_stderr is not defined
|
||||||
|
|
||||||
- name: assert assume not existing sts role
|
- name: assert assume not existing sts role
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- 'result.failed'
|
- 'result.failed'
|
||||||
- "'Access denied' in result.module_stderr"
|
- "'is not authorized to perform: sts:AssumeRole' in result.msg"
|
||||||
when: result.module_stderr is defined
|
when: result.module_stderr is defined
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
|
|
Loading…
Reference in a new issue