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:
parent
b09e467037
commit
574d19f752
1 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue