From a041bee1b341d8d1a4fee19abf68f97814a2947e Mon Sep 17 00:00:00 2001 From: "Jonas L." Date: Mon, 28 Apr 2025 20:50:34 +0200 Subject: [PATCH] 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. --- tests/integration/targets/subnetwork/tasks/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/targets/subnetwork/tasks/test.yml b/tests/integration/targets/subnetwork/tasks/test.yml index d79d0c8..b2da4fd 100644 --- a/tests/integration/targets/subnetwork/tasks/test.yml +++ b/tests/integration/targets/subnetwork/tasks/test.yml @@ -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: