From 6f58f38748085e6a104de6f9e992469d3b685d5a Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 7 Jan 2011 11:17:55 -0500 Subject: Display the entries that failed when deleting with --continue. We collected the failures but didn't report it back. This changes the API of most delete commands so rather than returning a boolean it returns a dict with the only current key as failed. This also adds a new parameter flag, suppress_empty. This will try to not print values that are empty if included. This makes the output of the delete commands a bit prettier. ticket 687 --- tests/test_xmlrpc/test_hbacsvcgroup_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_xmlrpc/test_hbacsvcgroup_plugin.py') diff --git a/tests/test_xmlrpc/test_hbacsvcgroup_plugin.py b/tests/test_xmlrpc/test_hbacsvcgroup_plugin.py index 9bd8c76e2..25b8f9fd2 100644 --- a/tests/test_xmlrpc/test_hbacsvcgroup_plugin.py +++ b/tests/test_xmlrpc/test_hbacsvcgroup_plugin.py @@ -230,7 +230,7 @@ class test_hbacsvcgroup(Declarative): expected=dict( value=hbacsvcgroup1, summary=u'Deleted HBAC Service group "testhbacsvcgroup1"', - result=True, + result=dict(failed=u''), ), ), @@ -241,7 +241,7 @@ class test_hbacsvcgroup(Declarative): expected=dict( value=hbacsvc1, summary=u'Deleted service "%s"' % hbacsvc1, - result=True, + result=dict(failed=u''), ), ) -- cgit