refactor: resolve ansible-core 2.19 TODOs now that 2.21 is the minimum (#13588)

This commit is contained in:
MohammadReza
2026-09-28 21:35:32 +00:00
committed by GitHub
parent ec07470009
commit d5190f6071
2 changed files with 7 additions and 10 deletions
@@ -193,10 +193,9 @@
- name: Calico | Configure calico network pool
vars:
_calico_blocksize: "{{ {'spec': {'blockSize': (_calico_pool_cmd.stdout | from_json).spec.blockSize } } }}"
# We need to specify the dict inside jinja because otherwhise the blockSize can become a string
# instead of a int and no amount of | int makes it back into and integer
# TODO: use a normal yaml dict after upgrading to ansible-core 2.19, where the issue does not exist
_calico_blocksize:
spec:
blockSize: "{{ (_calico_pool_cmd.stdout | from_json).spec.blockSize }}"
_calico_pool:
kind: "IPPool"
apiVersion: "projectcalico.org/v3"
@@ -236,10 +235,9 @@
- name: Calico | Configure calico IPv6 network pool
vars:
_calico_blocksize_ipv6: "{{ {'spec': {'blockSize': (_calico_pool_ipv6_cmd.stdout | from_json).spec.blockSize } } }}"
# We need to specify the dict inside jinja because otherwhise the blockSize can become a string
# instead of a int and no amount of | int makes it back into and integer
# TODO: use a normal yaml dict after upgrading to ansible-core 2.19, where the issue does not exist
_calico_blocksize_ipv6:
spec:
blockSize: "{{ (_calico_pool_ipv6_cmd.stdout | from_json).spec.blockSize }}"
_calico_pool_ipv6:
kind: "IPPool"
apiVersion: "projectcalico.org/v3"