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()
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()
def storage_modify(self, devices=[], driver = None): storage = Storage() args = self.Args() args.devices = devices args.driver = driver storage.set_args(args) storage.modify()
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()
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()
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()
def StorageReset(self): storage = Storage() # No arguments are passed for storage_reset function args = self.Args() storage.set_args(args) storage.reset()