docs: show warning if image_info is used without architecture (#215)

This commit is contained in:
Julian Tölle 2023-05-16 11:29:53 +02:00 committed by GitHub
parent 90451c22e3
commit 94a7a59a84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")
)]