Skip to content

Commit 4d7e5c9

Browse files
konstantin-kelemenKonstantin Kelemen
andauthored
Extend checks in diff as a workaround for type confusion with the Director API (#278)
* Fixes #277 * Update code, add comment --------- Co-authored-by: Konstantin Kelemen <kkk@servers.com>
1 parent 37988a6 commit 4d7e5c9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plugins/module_utils/icinga.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ def diff(self, find_by="name"):
262262
diff["before"][key] = "{val}".format(val=value)
263263
diff["after"][key] = "{val}".format(val=data_from_task[key])
264264

265+
# workaround for type confusion in API, remove when https://github.com/telekom-mms/ansible-collection-icinga-director/issues/285 is solved
266+
if diff["before"] == diff["after"]:
267+
return {}
268+
265269
return diff
266270

267271
def update(self, state):

0 commit comments

Comments
 (0)