예제 #1
0
 def StorageImport(self, graph, import_location):
     storage = Storage()
     args = self.Args()
     args.graph = graph
     args.import_location = import_location
     storage.set_args(args)
     storage.Import()
예제 #2
0
 def StorageImport(self, graph, import_location):
     storage = Storage()
     args = self.Args()
     args.graph = graph
     args.import_location = import_location
     storage.set_args(args)
     storage.Import()
예제 #3
0
 def storage_import(self, graph="/var/lib/docker", import_location="/var/lib/atomic/migrate"):
     storage = Storage()
     args = self.Args()
     args.graph = graph
     args.import_loc = import_location
     storage.set_args(args)
     storage.Import()
예제 #4
0
 def storage_modify(self, devices=[], driver = None):
     storage = Storage()
     args = self.Args()
     args.devices = devices
     args.driver = driver
     storage.set_args(args)
     storage.modify()
예제 #5
0
 def StorageExport(self, graph="/var/lib/docker", export_location="/var/lib/atomic/migrate", force=False):
     storage = Storage()
     args = self.Args()
     args.graph = graph
     args.export_location = export_location
     args.force = force
     storage.set_args(args)
     storage.Export()
예제 #6
0
파일: atomic_dbus.py 프로젝트: tann/atomic
 def StorageExport(self, graph="/var/lib/docker", export_location="/var/lib/atomic/migrate", force = False):
     storage = Storage()
     args = self.Args()
     args.graph = graph
     args.export_location = export_location
     args.force = force
     storage.set_args(args)
     storage.Export()
예제 #7
0
 def StorageModify(self, devices=None, driver=None):
     storage = Storage()
     args = self.Args()
     if devices:
         args.devices = devices
     else:
         args.devices = []
     args.driver = driver
     storage.set_args(args)
     storage.modify()
예제 #8
0
 def StorageModify(self, devices=None, driver=None):
     storage = Storage()
     args = self.Args()
     if devices:
         args.devices = devices
     else:
         args.devices = []
     args.driver = driver
     storage.set_args(args)
     storage.modify()
예제 #9
0
 def StorageReset(self):
     storage = Storage()
     # No arguments are passed for storage_reset function
     args = self.Args()
     storage.set_args(args)
     storage.reset()
예제 #10
0
 def StorageReset(self):
     storage = Storage()
     # No arguments are passed for storage_reset function
     args = self.Args()
     storage.set_args(args)
     storage.reset()