From 574d19f75211f65ea43cb717271073e69720a302 Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 10 Dec 2025 11:17:22 +0100 Subject: [PATCH] remove dead code --- plugins/modules/storage_box_subaccount.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/modules/storage_box_subaccount.py b/plugins/modules/storage_box_subaccount.py index 337245f..3b07689 100644 --- a/plugins/modules/storage_box_subaccount.py +++ b/plugins/modules/storage_box_subaccount.py @@ -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)