Skip to content

Commit

Permalink
fix clusters returning empty data
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorency committed Dec 9, 2024
1 parent 1483a69 commit 5d664d6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions roles/info/tasks/cluster_info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
password: "{{ info_password }}"
port: "{{ info_port | d(omit) }}"
validate_certs: "{{ info_validate_certs | default(omit) }}"
cluster: "{{ _cluster_name }}"
cluster: "{{ _cluster.name }}"
schema: vsphere
properties:
- name
- configuration.dasConfig.enabled
- summary.totalCpu
loop: "{{ __clusters.value }}"
loop_control:
loop_var: _cluster_name
loop_var: _cluster
register: __clusters_info
tags:
- cluster
Expand Down Expand Up @@ -57,7 +57,10 @@
# it sets the variable even if the block is skipped.
- name: Map Cluster Info To Correct Variable
ansible.builtin.set_fact:
__clusters_info: "{{ __dc_clusters_info }}"
__a_clusters_info: "{{ __dc_clusters_info }}"

- debug:

Check failure on line 62 in roles/info/tasks/cluster_info.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

fqcn[action-core]

Use FQCN for builtin module actions (debug).

Check failure on line 62 in roles/info/tasks/cluster_info.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

name[missing]

All tasks should be named.
var: __clusters_info.results

- name: Write Cluster Results To File
when: info_cluster_file
Expand Down

0 comments on commit 5d664d6

Please sign in to comment.