Skip to content

Commit

Permalink
And another one
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-checkmk committed Jul 31, 2024
1 parent 750f7c5 commit 0beeb18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/modules/tag_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def post(self): # Create taggroup
)

def put(self): # Update taggroup
self.headers["If-Match"] = self.current.etag
data = self.normalize_data()

return self._fetch(
Expand All @@ -212,7 +213,6 @@ def put(self): # Update taggroup
)

def delete(self): # Remove taggroup

return self._fetch(
endpoint="/objects/host_tag_group/%s?repair=%s"
% (self.params.get("name"), self.params.get("repair")),
Expand Down Expand Up @@ -292,7 +292,6 @@ def run_module():
if changes_detected(
module, json.loads(taggroup.current.content.decode("utf-8"))
):
taggroup.headers["If-Match"] = taggroup.current.etag
result = taggroup.put()

time.sleep(3)
Expand Down

0 comments on commit 0beeb18

Please sign in to comment.