Fatal error: put() encountered an exception while uploading '<StringIO.StringIO instance at 0x7fb4b6e0e368>'
Underlying exception message:
unsupported operand type(s) for &: 'str' and 'int'
Aborting.
upload_template(
os.path.join('deploy-files', 'nginx', 'nginx-template.conf'),
nginx_config_file_to,
context=context,
use_sudo=True, backup=False, mode='0644')
Pero claro, resulta que el modo debe ser un valor en OCTAL, y no un STRING! Cambiando el modo de string a octal solucionó el problema:
upload_template(
os.path.join('deploy-files', 'nginx', 'nginx-template.conf'),
nginx_config_file_to,
context=context,
use_sudo=True, backup=False, mode=0644)
os.path.join('deploy-files', 'nginx', 'nginx-template.conf'),
nginx_config_file_to,
context=context,
use_sudo=True, backup=False, mode=0644)
Es algo simple, pero lo comparto porque no encontré mucha información al buscar dicho mensaje de error en internet.
No hay comentarios:
Publicar un comentario