Skip to content

Commit

Permalink
sensible -> protected
Browse files Browse the repository at this point in the history
  • Loading branch information
poesel committed Jul 4, 2020
1 parent 7ccff8c commit de6dab8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/terkin/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ def dump(self):
if key.startswith('__'):
continue
thing = deepcopy(value)
self.purge_sensible_settings(thing)
self.purge_protected_settings(thing)
log.info('Section "{}": {}'.format(key, json.dumps(thing)))

def purge_sensible_settings(self, thing):
def purge_protected_settings(self, thing):
"""
This function purges all sensible pieces from the data structure
This function purges all protected pieces from the data structure
holding the configuration settings in order to protect information
leakage os sensitive information to STDOUT.
Expand All @@ -161,11 +161,11 @@ def purge_sensible_settings(self, thing):
value = '## redacted ##'
thing[key] = value

self.purge_sensible_settings(value)
self.purge_protected_settings(value)

elif isinstance(thing, list):
for item in thing:
self.purge_sensible_settings(item)
self.purge_protected_settings(item)

def to_dict(self):
""" """
Expand Down

0 comments on commit de6dab8

Please sign in to comment.