summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoît Knecht <benoit.knecht@fsfe.org>2013-09-23 15:58:42 +0200
committerSage Weil <sage@inktank.com>2013-09-23 09:03:54 -0700
commit4f9bf8b8209f18db83db545a395a0bd73bf13de7 (patch)
treee70424ab1efbd8239c2422dbd7f5d892f39bfbfb
parent991139bc0de1147171a08c21cfffd0dc57cd2b81 (diff)
downloadceph-4f9bf8b8209f18db83db545a395a0bd73bf13de7.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-xsrc/ceph.in3
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()