Bug fixes for GCP modules (#57826)

This commit is contained in:
The Magician 2019-06-18 12:47:22 -07:00 committed by ansibot
parent a1128b6b94
commit 7733dcabd3
4 changed files with 8 additions and 8 deletions

View file

@ -60,7 +60,7 @@
- name: verify that command succeeded
assert:
that:
- "'webstore' in \"{{ results['items'] | map(attribute='name') | list }}\""
- "'webstore' in \"{{ results['resources'] | map(attribute='name') | list }}\""
# ----------------------------------------------------------------------------
- name: create a database that already exists
gcp_spanner_database:
@ -101,7 +101,7 @@
- name: verify that command succeeded
assert:
that:
- "'webstore' not in \"{{ results['items'] | map(attribute='name') | list }}\""
- "'webstore' not in \"{{ results['resources'] | map(attribute='name') | list }}\""
# ----------------------------------------------------------------------------
- name: delete a database that does not exist
gcp_spanner_database:

View file

@ -54,7 +54,7 @@
- name: verify that command succeeded
assert:
that:
- "\"{{resource_name}}\" in \"{{ results['items'] | map(attribute='name') | list }}\""
- "\"{{resource_name}}\" in \"{{ results['resources'] | map(attribute='name') | list }}\""
# ----------------------------------------------------------------------------
- name: create a instance that already exists
gcp_spanner_instance:
@ -102,7 +102,7 @@
- name: verify that command succeeded
assert:
that:
- "\"{{resource_name}}\" not in \"{{ results['items'] | map(attribute='name') | list }}\""
- "\"{{resource_name}}\" not in \"{{ results['resources'] | map(attribute='name') | list }}\""
# ----------------------------------------------------------------------------
- name: delete a instance that does not exist
gcp_spanner_instance:

View file

@ -65,7 +65,7 @@
- name: verify that command succeeded
assert:
that:
- "\"{{resource_name}}\" in \"{{ results['items'] | map(attribute='name') | list }}\""
- "\"{{resource_name}}\" in \"{{ results['resources'] | map(attribute='name') | list }}\""
# ----------------------------------------------------------------------------
- name: create a database that already exists
gcp_sql_database:
@ -110,7 +110,7 @@
- name: verify that command succeeded
assert:
that:
- "\"{{resource_name}}\" not in \"{{ results['items'] | map(attribute='name') | list }}\""
- "\"{{resource_name}}\" not in \"{{ results['resources'] | map(attribute='name') | list }}\""
# ----------------------------------------------------------------------------
- name: delete a database that does not exist
gcp_sql_database:

View file

@ -67,7 +67,7 @@
- name: verify that command succeeded
assert:
that:
- "'test-user' in \"{{ results['items'] | map(attribute='name') | list }}\""
- "'test-user' in \"{{ results['resources'] | map(attribute='name') | list }}\""
# ----------------------------------------------------------------------------
- name: create a user that already exists
gcp_sql_user:
@ -114,7 +114,7 @@
- name: verify that command succeeded
assert:
that:
- "'test-user' not in \"{{ results['items'] | map(attribute='name') | list }}\""
- "'test-user' not in \"{{ results['resources'] | map(attribute='name') | list }}\""
# ----------------------------------------------------------------------------
- name: delete a user that does not exist
gcp_sql_user: