From: Sage Weil Date: Sun, 2 May 2021 22:08:33 +0000 (-0400) Subject: cephadm: add -v arg to shell X-Git-Tag: v17.1.0~1854^2~25 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=693fd30532760067a262f381fb3487deae52f689;p=ceph.git cephadm: add -v arg to shell Signed-off-by: Sage Weil --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 988678a3b4a5..e4086a423a27 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -4478,6 +4478,10 @@ def command_shell(ctx): os.path.join(home, f)) mounts[home] = '/root' + for i in ctx.volume: + a, b = i.split(':', 1) + mounts[a] = b + c = CephContainer( ctx, image=ctx.image, @@ -7653,6 +7657,11 @@ def _get_parser(): action='append', default=[], help='set environment variable') + parser_shell.add_argument( + '--volume', '-v', + action='append', + default=[], + help='set environment variable') parser_shell.add_argument( 'command', nargs=argparse.REMAINDER, help='command (optional)')