sahara/sahara/conductor
Trevor McKay 0d97c29882 Add a custom filter method to scan wrapped dict results
Basic filtering is available via Resource._filter_fields and
Resource._children but partial filtering of fields is not supported.

This change allows a Resource to define custom sanitization methods
for individual fields. The specified method is applied after the
field has been generated.

For nested structures, particularly when elements are not Resource
types, it is easier to scan the field after generation and remove
specific elements than it is to modify the recursive descent already
implemented in to_wrapped_dict().

JobExecutions are filtered with this mechanism to set swift credential
values to empty strings and to remove the 'conf' section reported
for running Oozie actions.

Closes-Bug: #1300291
Change-Id: Ifb0b99a3e13d40306139b0d0021aead69e870205
(cherry picked from commit 3367d9c363)
2014-04-08 13:20:48 +04:00
..
__init__.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
api.py Miscellaneous renaming string fixes 2014-03-20 16:37:54 -04:00
manager.py Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
objects.py Change the 'savanna-db' scheme to 'internal-db' 2014-03-18 11:26:48 -04:00
resource.py Add a custom filter method to scan wrapped dict results 2014-04-08 13:20:48 +04:00