diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-01-07 11:17:55 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-01-10 10:32:10 -0500 |
commit | 6f58f38748085e6a104de6f9e992469d3b685d5a (patch) | |
tree | ebc3a92f95feae19afc8ababcf306782e62988f8 /ipalib/output.py | |
parent | 0a79836082b897ebf734d9073583769cb276937c (diff) | |
download | freeipa-6f58f38748085e6a104de6f9e992469d3b685d5a.tar.gz freeipa-6f58f38748085e6a104de6f9e992469d3b685d5a.tar.xz freeipa-6f58f38748085e6a104de6f9e992469d3b685d5a.zip |
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
Diffstat (limited to 'ipalib/output.py')
-rw-r--r-- | ipalib/output.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ipalib/output.py b/ipalib/output.py index 60abe798c..617136274 100644 --- a/ipalib/output.py +++ b/ipalib/output.py @@ -136,8 +136,14 @@ standard_list_of_entries = ( standard_delete = ( summary, + Output('result', dict, 'list of deletions that failed'), + value, +) + +standard_boolean = ( + summary, Output('result', bool, 'True means the operation was successful'), value, ) -standard_value = standard_delete +standard_value = standard_boolean |