]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume lvm.batch move import statement to the top 23448/head
authorAlfredo Deza <adeza@redhat.com>
Mon, 6 Aug 2018 15:59:05 +0000 (11:59 -0400)
committerAlfredo Deza <adeza@redhat.com>
Mon, 6 Aug 2018 15:59:05 +0000 (11:59 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/strategies/bluestore.py

index 03fd92f65366828ee699c3922b2a8eed57b221db..07333c8081f390c54ea97b9ba27c731cb1c23ed2 100644 (file)
@@ -1,5 +1,6 @@
 from __future__ import print_function
 import json
+from uuid import uuid4
 from ceph_volume.util import disk
 from ceph_volume.api import lvm
 from . import validators
@@ -234,7 +235,6 @@ class MixedType(object):
         # create the data lvs, and create the OSD with the matching block.db lvs from before
         for osd in self.computed['osds']:
             vg = lvm.create_vg(osd['data']['path'])
-            from uuid import uuid4
             data_lv = lvm.create_lv('osd-data-%s' % str(uuid4()), vg.name)
             db_lv = db_lvs.pop()
             command = [