change config separator to whitespace

This commit is contained in:
Tomas Kopecek 2017-03-28 16:06:55 +02:00 committed by Mike McLean
parent 78a87f725e
commit 3b82594a32
3 changed files with 4 additions and 4 deletions

View file

@ -21,12 +21,12 @@ Additional feature is that some paths from buildroot can be left out from
tarball. Feature can be configured via
`/etc/kojid/plugins/save_failed_tree.conf` file. Currently only field
filters.paths is used and it consists of globs (standard python's fnmatch is
used) separated by ':'.
used) separated by whitespaces.
.. code-block:: ini
[filters]
paths = /etc/*.keytab:/tmp/secret_data
paths = /etc/*.keytab /tmp/secret_data
.. warning::
For security reasons, currently all ``/tmp/krb5cc*`` and ``/etc/*.keytab``

View file

@ -2,4 +2,4 @@
volume = DEFAULT
[filters]
paths = */tmp/krb5cc:*/etc/*.keytab
paths = */tmp/krb5cc */etc/*.keytab

View file

@ -27,7 +27,7 @@ def read_config():
'volume': None,
}
if cp.has_option('filters', 'paths'):
config['path_filters'] = cp.get('filters', 'paths').split(':')
config['path_filters'] = cp.get('filters', 'paths').split()
if cp.has_option('general', 'volume'):
config['volume'] = cp.get('general', 'volume').strip()