refactor: move module vars out of __init__
#336
Merged
Azure Pipelines / CI
succeeded
Sep 25, 2023 in 14m 42s
Build #20230925.24 had test failures
Details
- Failed: 1 (0.02%)
- Passed: 5,679 (94.82%)
- Other: 309 (5.16%)
- Total: 5,989
Annotations
azure-pipelines / CI
[testhost] testhost: hcloud_subnetwork : test vswitch subnetwork network={{ hcloud_network_name }}, ip_range=10.0.0.0/16, type=vswitch, network_zone=eu-central, vswitch_id={{ hetzner_vswitch_id }}, state=present
ansible_collections.hetzner.hcloud.plugins.module_utils.vendor.hcloud._exceptions.APIException: this robot vSwitch ID is already registered in another network
Raw output
Traceback (most recent call last):
File "/tmp/ansible_hetzner.hcloud.hcloud_subnetwork_payload_5xo6oyvo/ansible_hetzner.hcloud.hcloud_subnetwork_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_subnetwork.py", line 178, in _create_subnetwork
File "/tmp/ansible_hetzner.hcloud.hcloud_subnetwork_payload_5xo6oyvo/ansible_hetzner.hcloud.hcloud_subnetwork_payload.zip/ansible_collections/hetzner/hcloud/plugins/module_utils/vendor/hcloud/networks/client.py", line 116, in add_subnet
return self._client.add_subnet(self, subnet=subnet)
File "/tmp/ansible_hetzner.hcloud.hcloud_subnetwork_payload_5xo6oyvo/ansible_hetzner.hcloud.hcloud_subnetwork_payload.zip/ansible_collections/hetzner/hcloud/plugins/module_utils/vendor/hcloud/networks/client.py", line 438, in add_subnet
response = self._client.request(
File "/tmp/ansible_hetzner.hcloud.hcloud_subnetwork_payload_5xo6oyvo/ansible_hetzner.hcloud.hcloud_subnetwork_payload.zip/ansible_collections/hetzner/hcloud/plugins/module_utils/vendor/hcloud/_client.py", line 231, in request
self._raise_exception_from_content(content)
File "/tmp/ansible_hetzner.hcloud.hcloud_subnetwork_payload_5xo6oyvo/ansible_hetzner.hcloud.hcloud_subnetwork_payload.zip/ansible_collections/hetzner/hcloud/plugins/module_utils/vendor/hcloud/_client.py", line 185, in _raise_exception_from_content
raise APIException(
ansible_collections.hetzner.hcloud.plugins.module_utils.vendor.hcloud._exceptions.APIException: this robot vSwitch ID is already registered in another network
Loading