diff options
author | Benoît Knecht <benoit.knecht@fsfe.org> | 2013-09-23 15:58:42 +0200 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-09-26 16:06:29 -0700 |
commit | 30abe3244c86cbbe1f5b005850c29c9c0eafcad4 (patch) | |
tree | 3b83a76403510e9a6008a6c4088ce6939dd4227a | |
parent | b5a3978728d9435a543c00bb718f6e02438285c7 (diff) | |
download | ceph-30abe3244c86cbbe1f5b005850c29c9c0eafcad4.tar.gz |
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 <benoit.knecht@fsfe.org>
Signed-off-by: Sage Weil <sage@inktank.com>
-rwxr-xr-x | src/ceph.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ceph.in b/src/ceph.in index 320e4bd413f..07b8dc12fd2 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() |