diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2016-01-12 21:00:30 +0200 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2016-01-12 21:00:30 +0200 |
commit | 8097341492c03b41634e9fe97330c66efedc58f8 (patch) | |
tree | 01cb62cfc38d95e7ae271d3a4b33634fcc600163 /update-gerrit-groups.py | |
parent | b26a13b3e6344a7faf59664893241a3ca007f711 (diff) |
linaro_gerrit.py: Allow to take some args (like password) from config file.
Passwords are not safe to be passed from command line: tehy can be shown in
process list (ps ax, etc), in cron mails, etc.
Config file is linaro_gerrit.conf in the same directory as linaro_gerrit.py.
Clients of linaro_gerrit.py must call apply_gerrit_conf() to pull data from
config.
Change-Id: If21503769d27d5ca865a3d890598d67a0e1ff18f
Diffstat (limited to 'update-gerrit-groups.py')
-rwxr-xr-x | update-gerrit-groups.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/update-gerrit-groups.py b/update-gerrit-groups.py index 180b89c..a5ecaf3 100755 --- a/update-gerrit-groups.py +++ b/update-gerrit-groups.py @@ -9,6 +9,7 @@ parser = argparse.ArgumentParser( description='Update Gerrit Groups from LDAP') linaro_gerrit.add_gerrit_args(parser) args = parser.parse_args() +linaro_gerrit.apply_gerrit_conf(args) logging.basicConfig() log = logging.getLogger("update-gerrit-groups") log.setLevel(getattr(logging, args.loglevel.upper())) |