From f8102739e8237d2b1a411ddf44b9d985cef48982 Mon Sep 17 00:00:00 2001 From: hookenz Date: Tue, 22 May 2018 15:03:06 +1200 Subject: [PATCH] Allow the credentials to be read in from environment variables CB_USERNAME/CB_PASSWORD which prevents these from otherwise appearing in the process list. --- pump_transfer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pump_transfer.py b/pump_transfer.py index 064ac876..a0f62618 100755 --- a/pump_transfer.py +++ b/pump_transfer.py @@ -173,10 +173,10 @@ def opt_parser_options_common(self, p): help="""No actual transfer; just validate parameters, files, connectivity and configurations""") p.add_option("-u", "--username", - action="store", type="string", default=None, + action="store", type="string", default=os.environ.get("CB_USERNAME"), help="REST username for source cluster or server node") p.add_option("-p", "--password", - action="store", type="string", default=None, + action="store", type="string", default=os.environ.get("CB_PASSWORD"), help="REST password for source cluster or server node") p.add_option("-s", "--ssl", action="store_true", default=False,