From 30abe3244c86cbbe1f5b005850c29c9c0eafcad4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Knecht?= Date: Mon, 23 Sep 2013 15:58:42 +0200 Subject: [PATCH] Add CEPH_ARGS at the end of sys.argv MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This allows, for instance, to pass a different client name to ceph by exporting CEPH_ARGS="--id client_id". Signed-off-by: Benoît Knecht Signed-off-by: Sage Weil --- src/ceph.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ceph.in b/src/ceph.in index 320e4bd413fd2..07b8dc12fd204 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -476,6 +476,9 @@ def complete(sigdict, args, target): ### def main(): + ceph_args = os.environ.get('CEPH_ARGS') + if ceph_args: + sys.argv.extend(ceph_args.split()) parser, parsed_args, childargs = parse_cmdargs() -- 2.39.5