2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-11 16:24:41 +00:00

Preserve distribution fingerprint

Useful for breaking out the
profile copy over stage.
This commit is contained in:
Jarrod Johnson 2020-08-03 14:21:30 -04:00
parent 8fca5d23c0
commit 2e8d002876

View File

@ -418,6 +418,8 @@ def import_image(filename, callback, backend=False):
basename = identity.get('copyto', os.path.basename(filename))
targpath = os.path.join(targpath, basename)
shutil.copyfile(filename, targpath)
with open(targpath + '/distinfo.yaml', 'w') as distinfo:
distinfo.write(yaml.dump(identity, default_flow_style=False))
printit({'progress': 1.0})
sys.stdout.write('\n')