ansible-collection-hetzner-.../plugins/modules
urbanekpj 8f42c4d950
fix: string formatting error on deprecated server type warning (#309)
##### SUMMARY
after deprecating "server type" warning should be shown but due to error
in string message there is crash.
```
 File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 942, in <module>
  File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 925, in main
  File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 858, in present_server
  File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 405, in _create_server
  File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 541, in _get_server_type
  File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 558, in _check_and_warn_deprecated_server
TypeError: %i format: a real number is required, not str
```

##### ISSUE TYPE
- Bugfix Pull Request

##### COMPONENT NAME
hcloud_server

---------

Co-authored-by: jo <ljonas@riseup.net>
2023-08-23 14:08:06 +02:00
..
__init__.py Initial commit 2020-03-09 13:36:01 +00:00
hcloud_certificate.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_certificate_info.py fix: consistently fail on invalid ID in *_info modules (#301) 2023-08-16 16:14:55 +02:00
hcloud_datacenter_info.py fix: consistently fail on invalid ID in *_info modules (#301) 2023-08-16 16:14:55 +02:00
hcloud_firewall.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_floating_ip.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_floating_ip_info.py feat: query floating ip info by name (#303) 2023-08-17 11:50:19 +02:00
hcloud_image_info.py fix: consistently fail on invalid ID in *_info modules (#301) 2023-08-16 16:14:55 +02:00
hcloud_iso_info.py fix: consistently fail on invalid ID in *_info modules (#301) 2023-08-16 16:14:55 +02:00
hcloud_load_balancer.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_load_balancer_info.py feat: target health status in hcloud_load_balancer_info (#305) 2023-08-17 15:25:14 +02:00
hcloud_load_balancer_network.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_load_balancer_service.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_load_balancer_target.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_load_balancer_type_info.py fix: consistently fail on invalid ID in *_info modules (#301) 2023-08-16 16:14:55 +02:00
hcloud_location_info.py fix: consistently fail on invalid ID in *_info modules (#301) 2023-08-16 16:14:55 +02:00
hcloud_network.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_network_info.py fix: consistently fail on invalid ID in *_info modules (#301) 2023-08-16 16:14:55 +02:00
hcloud_placement_group.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_primary_ip.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_primary_ip_info.py fix: consistently fail on invalid ID in *_info modules (#301) 2023-08-16 16:14:55 +02:00
hcloud_rdns.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_route.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_server.py fix: string formatting error on deprecated server type warning (#309) 2023-08-23 14:08:06 +02:00
hcloud_server_info.py fix: consistently fail on invalid ID in *_info modules (#301) 2023-08-16 16:14:55 +02:00
hcloud_server_network.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_server_type_info.py fix: consistently fail on invalid ID in *_info modules (#301) 2023-08-16 16:14:55 +02:00
hcloud_ssh_key.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_ssh_key_info.py fix: consistently fail on invalid ID in *_info modules (#301) 2023-08-16 16:14:55 +02:00
hcloud_subnetwork.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_volume.py refactor: rename ansible module classes (#284) 2023-08-04 09:24:14 +02:00
hcloud_volume_info.py fix: consistently fail on invalid ID in *_info modules (#301) 2023-08-16 16:14:55 +02:00