From: Alfredo Deza Date: Mon, 19 Feb 2018 21:26:21 +0000 (-0500) Subject: ceph-volume lvm.prepare use the new group option exclution X-Git-Tag: v13.0.2~210^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e6b3c46368ea3e12fcebfef8fa60dd0824f3e1b4;p=ceph.git ceph-volume lvm.prepare use the new group option exclution Signed-off-by: Alfredo Deza --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/prepare.py b/src/ceph-volume/ceph_volume/devices/lvm/prepare.py index 781557bbddec..5d3d03ee9e11 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/prepare.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/prepare.py @@ -6,6 +6,7 @@ from textwrap import dedent from ceph_volume.util import prepare as prepare_utils from ceph_volume.util import encryption as encryption_utils from ceph_volume.util import system, disk +from ceph_volume.util.arg_validators import exclude_group_options from ceph_volume import conf, decorators, terminal from ceph_volume.api import lvm as api from .common import prepare_parser, rollback_osd @@ -353,6 +354,7 @@ class Prepare(object): if len(self.argv) == 0: print(sub_command_help) return + exclude_group_options(parser, argv=self.argv, groups=['filestore', 'bluestore']) args = parser.parse_args(self.argv) # Default to bluestore here since defaulting it in add_argument may # cause both to be True