prepare_vmware_test: avoid the dependency on jmespath (#63344)

We don't really need to depend on jmespath for this.
This commit is contained in:
Gonéri Le Bouder 2019-10-10 13:25:07 -04:00 committed by GitHub
parent 904e8434db
commit 7de70bde52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,11 +8,7 @@
- name: Get Category id for {{ cluster_category }}
set_fact:
cluster_category_id: "{{ item.category_id }}"
with_items:
- "{{ cat_info.tag_category_info | json_query(query) }}"
vars:
query: "[?category_name=='{{ cluster_category }}']"
cluster_category_id: "{{ cat_info.tag_category_info[0].category_id }}"
- name: Create a tag for cluster
vmware_tag: