mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
hcloud_server: streamline label handling (#53633)
This commit is contained in:
parent
1a306ce871
commit
32c337ee39
2 changed files with 19 additions and 1 deletions
|
@ -274,7 +274,7 @@ class AnsibleHcloudServer(Hcloud):
|
|||
self._mark_as_changed()
|
||||
|
||||
labels = self.module.params.get("labels")
|
||||
if labels is not None:
|
||||
if labels is not None and labels != self.hcloud_server.labels:
|
||||
if not self.module.check_mode:
|
||||
self.hcloud_server.update(labels=labels)
|
||||
self._mark_as_changed()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue