Do not crash on empty --setattr, --getattr, --addattr

Also the unused `append` argument from _convert_2_dict.

https://fedorahosted.org/freeipa/ticket/2680
This commit is contained in:
Petr Viktorin
2012-04-27 06:07:16 -04:00
committed by Martin Kosek
parent 0206dbe795
commit abef5e8c02
2 changed files with 10 additions and 9 deletions

View File

@@ -39,7 +39,8 @@ class test_attr(Declarative):
dict(
desc='Create %r' % user1,
command=(
'user_add', [user1], dict(givenname=u'Test', sn=u'User1')
'user_add', [user1], dict(givenname=u'Test', sn=u'User1',
setattr=None)
),
expected=dict(
value=user1,