From 1431c80b3c2a256bb6c10cf042f7671004695a9f Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 10 Apr 2012 07:44:21 -0400 Subject: Convert --setattr values for attributes marked no_update Attribute Patrams marked no_update never get cloned to Update commands, and thus never receive the `attribute` flag. This makes their `encode` method a no-op, which meant they don't get properly encoded when used with --setattr, making the --setattr fail. Introduce a `force` argument to encode, which overrides checking for the attribute flag. Use this in set/add/delattr normalization, where we know we are dealing with attributes. https://fedorahosted.org/freeipa/ticket/2616 --- tests/test_xmlrpc/test_attr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_xmlrpc/test_attr.py') diff --git a/tests/test_xmlrpc/test_attr.py b/tests/test_xmlrpc/test_attr.py index e6872a67..c19a6948 100644 --- a/tests/test_xmlrpc/test_attr.py +++ b/tests/test_xmlrpc/test_attr.py @@ -433,7 +433,7 @@ class test_attr(Declarative): command=( 'user_mod', [user1], dict( addattr=u'nsaccountlock=FaLsE', - delattr=u'nsaccountlock=True') + delattr=u'nsaccountlock=TRUE') ), expected=dict( result=dict( -- cgit