Merge "Update dcmanager handling of file upload for Debian"
This commit is contained in:
commit
7bfe0ff9c7
@ -241,7 +241,7 @@ class SubcloudsController(object):
|
|||||||
def _upload_config_file(self, file_item, config_file, config_type):
|
def _upload_config_file(self, file_item, config_file, config_type):
|
||||||
try:
|
try:
|
||||||
with open(config_file, "w") as f:
|
with open(config_file, "w") as f:
|
||||||
f.write(file_item)
|
f.write(file_item.decode('utf8'))
|
||||||
except Exception:
|
except Exception:
|
||||||
msg = _("Failed to upload %s file" % config_type)
|
msg = _("Failed to upload %s file" % config_type)
|
||||||
LOG.exception(msg)
|
LOG.exception(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user