2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-07 12:06:00 +00:00

Add a breadcrum to distinfo.yaml to indicate where an image came from

This commit is contained in:
Jarrod Johnson 2021-11-29 09:55:38 -05:00
parent 425f5276b3
commit d049934626

View File

@ -569,6 +569,7 @@ def import_image(filename, callback, backend=False, mfd=None):
targpath = '/var/lib/confluent/distributions/' + targpath
os.makedirs(targpath, 0o755)
filename = os.path.abspath(filename)
identity['importedfile'] = filename
os.chdir(targpath)
if not backend:
print('Importing OS to ' + targpath + ':')