From: Benoît Knecht Date: Mon, 23 Sep 2013 13:58:42 +0000 (+0200) Subject: Add CEPH_ARGS at the end of sys.argv X-Git-Tag: mark-v0.70-wip~17^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=30abe3244c86cbbe1f5b005850c29c9c0eafcad4;p=ceph.git Add CEPH_ARGS at the end of sys.argv 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 --- 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()