mirror of
https://github.com/ceph/ceph
synced 2025-03-31 07:53:23 +00:00
ceph-volume lvm create should check for root
Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
parent
74e977fe93
commit
a77dc50787
@ -1,6 +1,7 @@
|
||||
from __future__ import print_function
|
||||
from textwrap import dedent
|
||||
from ceph_volume.util import system
|
||||
from ceph_volume import decorators
|
||||
from .common import create_parser
|
||||
from .prepare import Prepare
|
||||
from .activate import Activate
|
||||
@ -13,6 +14,7 @@ class Create(object):
|
||||
def __init__(self, argv):
|
||||
self.argv = argv
|
||||
|
||||
@decorators.needs_root
|
||||
def create(self, args):
|
||||
if not args.osd_fsid:
|
||||
args.osd_fsid = system.generate_uuid()
|
||||
|
Loading…
Reference in New Issue
Block a user