]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: Prepare keeps track of args
authorLoic Dachary <ldachary@redhat.com>
Sat, 22 Apr 2017 08:14:11 +0000 (10:14 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sat, 22 Apr 2017 08:20:14 +0000 (10:20 +0200)
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
Signed-off-by: Loic Dachary <loic@dachary.org>
src/ceph-disk/ceph_disk/main.py

index de0aa692e0a87ac2f3963ad247ce1a4662d18183..69fe9f3eaa5cdb74aacea3d740a4a8b326b2140a 100755 (executable)
@@ -1913,6 +1913,9 @@ class DevicePartitionCryptLuks(DevicePartitionCrypt):
 
 class Prepare(object):
 
+    def __init__(self, args):
+        self.args = args
+
     @staticmethod
     def parser():
         parser = argparse.ArgumentParser(add_help=False)
@@ -2032,6 +2035,7 @@ class Prepare(object):
 class PrepareFilestore(Prepare):
 
     def __init__(self, args):
+        super(PrepareFilestore, self).__init__(args)
         if args.dmcrypt:
             self.lockbox = Lockbox(args)
         self.data = PrepareFilestoreData(args)
@@ -2052,6 +2056,7 @@ class PrepareFilestore(Prepare):
 class PrepareBluestore(Prepare):
 
     def __init__(self, args):
+        super(PrepareBluestore, self).__init__(args)
         if args.dmcrypt:
             self.lockbox = Lockbox(args)
         self.data = PrepareBluestoreData(args)