RETIRED, Sahara provides a scalable data processing stack and associated management interfaces.
Go to file
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
doc/source Fix big job binary objects in mysql 2014-04-08 13:20:36 +04:00
etc Do not document use_identity_api_v3 in the sample-basic file 2014-04-03 13:52:51 +02:00
sahara Add a custom filter method to scan wrapped dict results 2014-04-08 13:20:48 +04:00
tools Missed renames in code base 2014-03-21 10:57:55 -04:00
.coveragerc Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
.gitignore Renaming files with savanna words in its names 2014-03-19 23:42:18 +04:00
.gitreview Update .gitreview to point on updated repo 2014-03-12 16:55:37 +04:00
.mailmap Adding Denny Zhang to AUTHORS 2013-10-07 19:40:35 +04:00
.pylintrc Change 'savanna' references in tools 2014-03-19 15:59:50 -04:00
.testr.conf Launch integration tests with testr 2013-12-13 15:57:04 +04:00
CONTRIBUTING.rst Change savanna references in top level docs 2014-03-20 15:21:35 -04:00
HACKING.rst Change savanna references in top level docs 2014-03-20 15:21:35 -04:00
LICENSE copyright has been added 2013-03-11 10:30:40 +04:00
MANIFEST.in Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00
README.rst Standardize README header 2014-03-29 14:12:44 +00:00
babel.cfg First steps for i18n support 2013-08-26 22:16:45 +04:00
openstack-common.conf Change remaining savanna namespaces in setup.cfg 2014-03-19 16:49:49 -04:00
requirements.txt Merge "Updated from global requirements" 2014-03-29 17:58:22 +00:00
run_tests.sh Fixup 'savanna' references in run_tests.sh 2014-03-20 16:52:42 -04:00
setup.cfg Remove agent remote 2014-03-27 19:46:49 +04:00
setup.py Remove version pbr pins from setup_requires 2013-09-22 12:22:17 +04:00
test-requirements.txt Move integration tests to python-saharaclient 0.6.0 2014-03-20 14:44:33 +04:00
tox.ini Move the savanna subdir to sahara 2014-03-18 16:38:36 +04:00