diff options
author | Pavel Zuna <pzuna@redhat.com> | 2010-07-16 11:50:12 -0400 |
---|---|---|
committer | Pavel Zuna <pzuna@redhat.com> | 2010-07-16 11:50:12 -0400 |
commit | be68b7e7486a35936bb7e953f9cfaf44f3dc96ce (patch) | |
tree | 2575bb6f5465ea4a3dd22b3395417bbd849a0906 /ipalib/plugins | |
parent | 8e1da8054fbc9bcfb3399fcd92d9596fda31fe26 (diff) | |
download | freeipa-be68b7e7486a35936bb7e953f9cfaf44f3dc96ce.tar.gz freeipa-be68b7e7486a35936bb7e953f9cfaf44f3dc96ce.tar.xz freeipa-be68b7e7486a35936bb7e953f9cfaf44f3dc96ce.zip |
Fix bug in baseldap.py when using addattr without setattr.
When the addattr argument was present, the code was assuming that
setattr is present as well, which doesn't have to be the case.
Diffstat (limited to 'ipalib/plugins')
-rw-r--r-- | ipalib/plugins/baseldap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 92b42d4ee..8d7ac7741 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -436,7 +436,7 @@ class LDAPUpdate(LDAPQuery, crud.Update): set. """ if 'addattr' in options: - setset = set(get_attributes(options['setattr'])) + setset = set(get_attributes(options.get('setattr', []))) addset = set(get_attributes(options['addattr'])) difflist = list(addset.difference(setset)) if difflist: |