fix safer obj

This commit is contained in:
Antonio J. Delgado 2024-11-12 08:39:34 +02:00
parent d080342c78
commit 1712cd6496

View file

@ -772,9 +772,9 @@ class NextcloudHandler:
def is_same_password(self, obj1, obj2):
'''Test if two password objects are the same or similar'''
if obj1 == obj2:
safer_obj1 = dict(obj1, **{ 'password': '***' })
safer_obj2 = dict(obj2, **{ 'password': '***' })
if obj1 == obj2:
self.debug(
{"action": "notify_exact_match", "object": { "obj1": safer_obj1, "obj2": safer_obj2 } }
)