1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

remove dead code

This commit is contained in:
jo 2025-12-10 11:17:22 +01:00
parent b09e467037
commit 574d19f752
No known key found for this signature in database
GPG key ID: B2FEC9B22722B984

View file

@ -340,11 +340,9 @@ class AnsibleStorageBoxSubaccount(AnsibleHCloud):
params["labels"][NAME_LABEL_KEY] = value
self._mark_as_changed()
# Update only if params holds changes or the data must be refreshed (actions
# were triggered)
if params or self.actions:
# Update only if params holds changes
if params:
if not self.module.check_mode:
self._wait_actions()
self.storage_box_subaccount = self.storage_box_subaccount.update(**params)
self.storage_box_subaccount_name = self.storage_box_subaccount.labels.pop(NAME_LABEL_KEY)