Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move module vars out of __init__ #336

Merged
merged 3 commits into from
Sep 26, 2023

refactor: replace assert with NoImplementedError

3cc45b2
Select commit
Loading
Failed to load commit list.
Merged

refactor: move module vars out of __init__ #336

refactor: replace assert with NoImplementedError
3cc45b2
Select commit
Loading
Failed to load commit list.
Azure Pipelines / CI succeeded Sep 25, 2023 in 14m 42s

Build #20230925.24 had test failures

Details

Tests

  • Failed: 1 (0.02%)
  • Passed: 5,679 (94.82%)
  • Other: 309 (5.16%)
  • Total: 5,989

Annotations

Check failure on line 1 in [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

See this annotation in the file changed.

@azure-pipelines 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