mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-06 21:12:37 +00:00
Attempt to resolve #23 entirely without a json_query().
This commit is contained in:
@@ -262,15 +262,13 @@
|
||||
reason: DeploymentPaused
|
||||
register: pause_deploy
|
||||
|
||||
- debug: var=pause_deploy
|
||||
|
||||
- name: Check that paused deployment wait worked
|
||||
assert:
|
||||
that:
|
||||
- condition.reason == "DeploymentPaused"
|
||||
- condition.status == "Unknown"
|
||||
vars:
|
||||
condition: '{{ pause_deploy.result.status.conditions | community.general.json_query("[?type==`Progressing`]") | first }}'
|
||||
condition: '{{ pause_deploy.result.status.conditions[1] }}'
|
||||
|
||||
- name: Add a service based on the deployment
|
||||
k8s:
|
||||
|
||||
Reference in New Issue
Block a user