1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00
This commit is contained in:
Lukas Kämmerling 2020-04-15 13:59:54 +02:00
parent 19d9b8bf97
commit 9ca7111999

View file

@ -306,6 +306,7 @@ class AnsibleHcloudServer(Hcloud):
self.module.fail_on_missing_params(
required_params=["name", "server_type", "image"]
)
self.module.fail_json(msg=self.module.params.get("name"))
params = {
"name": self.module.params.get("name"),
"server_type": self.client.server_types.get_by_name(