From 94a7a59a84f99dcd5a6abf48de79029fca5c6a64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Tue, 16 May 2023 11:29:53 +0200 Subject: [PATCH] docs: show warning if image_info is used without architecture (#215) --- plugins/modules/hcloud_image_info.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/modules/hcloud_image_info.py b/plugins/modules/hcloud_image_info.py index 8acd884..c1603d2 100644 --- a/plugins/modules/hcloud_image_info.py +++ b/plugins/modules/hcloud_image_info.py @@ -154,6 +154,7 @@ class AnsibleHcloudImageInfo(Hcloud): self.module.params.get("architecture") )] elif self.module.params.get("name") is not None: + self.module.warn("This module only returns x86 images by default. Please set architecture:x86|arm to hide this message.") self.hcloud_image_info = [self.client.images.get_by_name( self.module.params.get("name") )]