]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume lvm.prepare use the new group option exclution
authorAlfredo Deza <adeza@redhat.com>
Mon, 19 Feb 2018 21:26:21 +0000 (16:26 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 23 Feb 2018 15:33:09 +0000 (09:33 -0600)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit e6b3c46368ea3e12fcebfef8fa60dd0824f3e1b4)

src/ceph-volume/ceph_volume/devices/lvm/prepare.py

index 0ee3d52cad55353adf42eb4f6a5d0aa4fdf6c495..360cf04ac645d1f8de917d50a3ef3666c72efde7 100644 (file)
@@ -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
@@ -357,6 +358,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