Make overcloud_config working with Python 3
Open and write the content from the file in Swift as bytes and in read mode, otherwise Python 3 fails to open it as it comes as a string by default. Change-Id: Ie6abc2e58cc7f349881f1315e3a56af9a6814791 Closes-Bug: #1824225
This commit is contained in:
parent
d153846e0c
commit
ef0e508515
@ -102,7 +102,7 @@ class DownloadConfig(command.Command):
|
||||
tarball_name = "%s-config.tar.gz" % name
|
||||
tarball_path = os.path.join(config_dir, tarball_name)
|
||||
|
||||
with open(tarball_path, 'w') as f:
|
||||
with open(tarball_path, 'wb') as f:
|
||||
f.write(tarball_contents)
|
||||
|
||||
print("Extracting config-download...")
|
||||
|
Loading…
Reference in New Issue
Block a user