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 14:35:22 +02:00
parent 7f23f7dc59
commit 32c944ae1b
2 changed files with 2 additions and 2 deletions

View file

@ -220,7 +220,7 @@ class AnsibleHcloudFloatingIP(Hcloud):
self.module.fail_on_missing_params(
required_params=["type"]
)
self.module.fail_json(msg=self.module.params.get("name"))
params = {
"description": self.module.params.get("description"),
"type": self.module.params.get("type"),

View file

@ -306,7 +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(