Merge pull request #2562 from avoidik/fix-indexes-pr-2251
Fix kubecert_node.results indexes
This commit is contained in:
commit
887a468d32
1 changed files with 3 additions and 3 deletions
|
@ -105,9 +105,9 @@
|
|||
{%- set certs = {'sync': False} -%}
|
||||
{% if gen_node_certs[inventory_hostname] or
|
||||
(not kubecert_node.results[0].stat.exists|default(False)) or
|
||||
(not kubecert_node.results[10].stat.exists|default(False)) or
|
||||
(not kubecert_node.results[7].stat.exists|default(False)) or
|
||||
(kubecert_node.results[10].stat.checksum|default('') != kubecert_master.files|selectattr("path", "equalto", kubecert_node.results[10].stat.path)|map(attribute="checksum")|first|default('')) -%}
|
||||
(not kubecert_node.results[12].stat.exists|default(False)) or
|
||||
(not kubecert_node.results[8].stat.exists|default(False)) or
|
||||
(kubecert_node.results[12].stat.checksum|default('') != kubecert_master.files|selectattr("path", "equalto", kubecert_node.results[12].stat.path)|map(attribute="checksum")|first|default('')) -%}
|
||||
{%- set _ = certs.update({'sync': True}) -%}
|
||||
{% endif %}
|
||||
{{ certs.sync }}
|
||||
|
|
Loading…
Reference in a new issue