2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-11 08:15:24 +00:00

Fix handling of unset crypted attributes

This commit is contained in:
Jarrod Johnson 2020-08-05 14:17:58 -04:00
parent c8cda426be
commit a9497b16e8

View File

@ -1801,7 +1801,7 @@ class CryptedAttributes(Attributes):
nkv = {}
for key in kv:
nkv[key] = {'isset': False}
if 'hashvalue' in kv[key]:
if kv[key] and 'hashvalue' in kv[key]:
targkey = 'hashvalue'
else:
targkey = 'cryptvalue'