From b475ff9576f145d31c053213c699e13df76d2bcb 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 (cherry picked from commit 30abe3244c86cbbe1f5b005850c29c9c0eafcad4) --- src/ceph.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ceph.in b/src/ceph.in index b14842a688489..547a090e1371c 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -475,6 +475,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