ANSIBLE: boto - "TypeError: a bytes-like object is required, not 'str'"
ANSIBLE: boto - "TypeError: a bytes-like object is required, not 'str'"
使用 ansible=2.10.0 和 boto=2.49.0,当尝试执行 ec2_vol playbook 进行管理时磁盘到具有代理环境的 AWS 实例。
收到此错误 -
connection.py",line 796, in proxy_ssl, sock.sendall("CONNECT %s HTTP/1.0\r\n" % host), TypeError: a bytes-like object is required, not 'str',
有公开 PR 到 boto 来修复它,但尚未合并 - https://github.com/boto/boto/pull/3699。
社区模块也不适用于 ec2_vol,例如 - https://galaxy.ansible.com/community/aws.
除了像 python 中的 monkeypatching 那样使用 fork 解决它之外,还有其他解决方案吗?
经过长时间的研发,我找到了上述错误的解决方案-
我们可以使用amazon.aws:1.4.1
版本来解决问题。
我没有像上面的 ec2_vol 任务那样抛出错误。
使用 ansible=2.10.0 和 boto=2.49.0,当尝试执行 ec2_vol playbook 进行管理时磁盘到具有代理环境的 AWS 实例。 收到此错误 -
connection.py",line 796, in proxy_ssl, sock.sendall("CONNECT %s HTTP/1.0\r\n" % host), TypeError: a bytes-like object is required, not 'str',
有公开 PR 到 boto 来修复它,但尚未合并 - https://github.com/boto/boto/pull/3699。 社区模块也不适用于 ec2_vol,例如 - https://galaxy.ansible.com/community/aws.
除了像 python 中的 monkeypatching 那样使用 fork 解决它之外,还有其他解决方案吗?
经过长时间的研发,我找到了上述错误的解决方案-
我们可以使用amazon.aws:1.4.1
版本来解决问题。
我没有像上面的 ec2_vol 任务那样抛出错误。