1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

test: fix type casting for ansible-core 2.19 (devel) (#630)

##### SUMMARY

Related to #627 

String casting seem not needed anymore, I assume because native type are
now preserved.
This commit is contained in:
Jonas L. 2025-04-28 20:50:34 +02:00 committed by GitHub
parent 9b119fa958
commit a041bee1b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,7 +87,8 @@
- result.hcloud_subnetwork.network_zone == hcloud_network_zone_name
- result.hcloud_subnetwork.type == "vswitch"
- result.hcloud_subnetwork.ip_range == "10.0.1.0/24"
- result.hcloud_subnetwork.vswitch_id | string == test_vswitch_id
# Type casting can be removed once ansible-core < 2.19 is dropped
- result.hcloud_subnetwork.vswitch_id == test_vswitch_id | int
- name: Test delete with vswitch
hetzner.hcloud.subnetwork: