Skip to content

Commit e76f2fd

Browse files
committed
Merge branch 'devel' of github.com:Checkmk/ansible-collection-checkmk.general into devel
2 parents feb0f35 + 109b899 commit e76f2fd

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

plugins/modules/folder.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def __init__(self, module):
218218

219219
self.desired = {}
220220

221-
(self.desired["parent"], self.desired["name"]) = self._normalize_path(
221+
self.desired["parent"], self.desired["name"] = self._normalize_path(
222222
self.params.get("path")
223223
)
224224

@@ -303,7 +303,7 @@ def _detect_changes(self):
303303

304304
if merged_attributes != current_attributes:
305305
try:
306-
(c_m, m_c) = recursive_diff(current_attributes, merged_attributes)
306+
c_m, m_c = recursive_diff(current_attributes, merged_attributes)
307307
changes.append("update attributes: %s" % json.dumps(m_c))
308308
except Exception as e:
309309
changes.append("update attributes")
@@ -332,20 +332,20 @@ def _detect_changes(self):
332332
msg="ERROR: The parameter remove_attributes of dict type is not supported for the paramter extended_functionality: false!",
333333
)
334334

335-
(tmp_remove, tmp_rest) = (current_attributes, {})
335+
tmp_remove, tmp_rest = (current_attributes, {})
336336
if current_attributes != tmp_remove_attributes:
337337
try:
338-
(c_m, m_c) = recursive_diff(
338+
c_m, m_c = recursive_diff(
339339
current_attributes, tmp_remove_attributes
340340
)
341341

342342
if c_m:
343343
# if nothing to remove
344344
if current_attributes == c_m:
345-
(tmp_remove, tmp_rest) = ({}, current_attributes)
345+
tmp_remove, tmp_rest = ({}, current_attributes)
346346
else:
347-
(c_c_m, c_m_c) = recursive_diff(current_attributes, c_m)
348-
(tmp_remove, tmp_rest) = (c_c_m, c_m)
347+
c_c_m, c_m_c = recursive_diff(current_attributes, c_m)
348+
tmp_remove, tmp_rest = (c_c_m, c_m)
349349
except Exception as e:
350350
self.module.fail_json(
351351
msg="ERROR: incompatible parameter: remove_attributes!",

plugins/modules/host.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def _detect_changes_attributes(self):
477477

478478
if merged_attributes != current_attributes:
479479
try:
480-
(c_m, m_c) = recursive_diff(current_attributes, merged_attributes)
480+
c_m, m_c = recursive_diff(current_attributes, merged_attributes)
481481
changes.append("update attributes: %s" % json.dumps(m_c))
482482
except Exception as e:
483483
changes.append("update attributes")
@@ -498,20 +498,20 @@ def _detect_changes_attributes(self):
498498
msg="ERROR: The parameter remove_attributes of dict type is not supported for the paramter extended_functionality: false!",
499499
)
500500

501-
(tmp_remove, tmp_rest) = (current_attributes, {})
501+
tmp_remove, tmp_rest = (current_attributes, {})
502502
if current_attributes != tmp_remove_attributes:
503503
try:
504-
(c_m, m_c) = recursive_diff(
504+
c_m, m_c = recursive_diff(
505505
current_attributes, tmp_remove_attributes
506506
)
507507

508508
if c_m:
509509
# if nothing to remove
510510
if current_attributes == c_m:
511-
(tmp_remove, tmp_rest) = ({}, current_attributes)
511+
tmp_remove, tmp_rest = ({}, current_attributes)
512512
else:
513-
(c_c_m, c_m_c) = recursive_diff(current_attributes, c_m)
514-
(tmp_remove, tmp_rest) = (c_c_m, c_m)
513+
c_c_m, c_m_c = recursive_diff(current_attributes, c_m)
514+
tmp_remove, tmp_rest = (c_c_m, c_m)
515515
except Exception as e:
516516
self.module.fail_json(
517517
msg="ERROR: incompatible parameter: remove_attributes!",

plugins/modules/rule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def __init__(self, module):
550550

551551
if self.rule_id:
552552
# Get the current rule from the API and set some parameters
553-
(self.current, self.state, self.result) = self._get_current()
553+
self.current, self.state, self.result = self._get_current()
554554
if self.state == "present":
555555
self._changed_items = self._detect_changes()
556556

@@ -563,7 +563,7 @@ def _verify_location(self):
563563
neighbour_id = self.params.get("rule", {}).get("location", {}).get("neighbour")
564564

565565
if neighbour_id:
566-
(neighbour, state, result) = self._get_rule_by_id(neighbour_id)
566+
neighbour, state, result = self._get_rule_by_id(neighbour_id)
567567

568568
if state == "absent":
569569
self.module.warn(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies = [
1515

1616
[dependency-groups]
1717
dev = [
18-
"black==25.12.0",
18+
"black==26.1.0",
1919
"click==8.3.1",
2020
"isort==7.0.0",
2121
"mypy-extensions==1.1.0",

0 commit comments

Comments
 (0)