Fixed bug where _prep_acl_for_compare() would edit but not return

This commit is contained in:
Dan Slimmon 2016-06-04 15:35:00 +00:00
parent f87bc347fd
commit 35b84f1877

View file

@ -178,7 +178,7 @@ def _prep_acl_for_compare(ACL):
'''
ret = deepcopy(ACL)
ret['Owner'] = _normalize_user(ret['Owner'])
for item in ACL.get('Grants', ()):
for item in ret.get('Grants', ()):
item['Grantee'] = _normalize_user(item.get('Grantee'))
return ret