mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Minor fixes to paths
This commit is contained in:
parent
efecc15382
commit
a9c465cf8c
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class MoveImage(Task):
|
|||
def run(self, info):
|
||||
import os.path
|
||||
filename = 'loopback-{id:x}.{ext}'.format(id=info.run_id, ext=info.volume.extension)
|
||||
destination = os.path.join(info.bootstrapper['workspace'], filename)
|
||||
destination = os.path.join(info.manifest.bootstrapper['workspace'], filename)
|
||||
import shutil
|
||||
shutil.move(info.volume.image_path, destination)
|
||||
import logging
|
||||
|
|
|
@ -50,7 +50,7 @@ class CopyImage(Task):
|
|||
def run(self, info):
|
||||
import os.path
|
||||
from shutil import copyfile
|
||||
loopback_backup_name = 'loopback-{id:x}.img.backup'.format(id=info.run_id)
|
||||
loopback_backup_name = 'volume-{id:x}.{ext}.backup'.format(id=info.run_id, ext=info.volume.extension)
|
||||
destination = os.path.join(info.manifest.bootstrapper['workspace'], loopback_backup_name)
|
||||
copyfile(info.volume.image_path, destination)
|
||||
msg = 'A copy of the bootstrapped volume was created. Path: {path}'.format(path=destination)
|
||||
|
|
Loading…
Add table
Reference in a new issue