Traceback (most recent call last):


 "/usr/lib/python2.7/dist-packages/salt/cloud/cli.py", line 348, in run

ret = mapper.run_map(dmap)


 "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 2231, in run_map

profile, local_master=local_master


 "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 1288, in create

output = self.clouds[func](vm_)


 "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/ec2.py", line 2642, in create

call='action'


 "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/ec2.py", line 2771, in create_attach_volumes

created_volume = create_volume(volume_dict, call='function', wait_to_finish=wait_to_finish)


 "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/ec2.py", line 3918, in create_volume

sigver='4')


 "/usr/lib/python2.7/dist-packages/salt/utils/aws.py", line 463, in query

result.text.encode(result.encoding)
TypeError: encode() argument 1 must be string, not None

Traceback (most recent call last):


 "utils/poc.py", line 51, in <module>

test_failed_fn()


 "utils/poc.py", line 47, in test_failed_fn

extract_tls_payloads(os.path.join(data_root, fn), 900)


 "utils/poc.py", line 19, in extract_tls_payloads

payload = bytes(p[TLS])


 "/data1/wangqian/venv_py3/lib/python3.7/site-packages/scapy/layers/tls/session.py", line 966, in __bytes__

built_packet = super(_GenericTLSSessionInheritance, self).__bytes__()


 "/data1/wangqian/venv_py3/lib/python3.7/site-packages/scapy/packet.py", line 492, in __bytes__

return self.build()


 "/data1/wangqian/venv_py3/lib/python3.7/site-packages/scapy/packet.py", line 612, in build

p = self.do_build()


 "/data1/wangqian/venv_py3/lib/python3.7/site-packages/scapy/packet.py", line 594, in do_build

pkt = self.self_build()


 "/data1/wangqian/venv_py3/lib/python3.7/site-packages/scapy/packet.py", line 575, in self_build

p = f.addfield(self, p, val)


 "/data1/wangqian/venv_py3/lib/python3.7/site-packages/scapy/layers/tls/record.py", line 207, in addfield

res += self.i2m(pkt, p)


 "/data1/wangqian/venv_py3/lib/python3.7/site-packages/scapy/layers/tls/record.py", line 194, in i2m

cur = raw(p)


 "/data1/wangqian/venv_py3/lib/python3.7/site-packages/scapy/compat.py", line 53, in raw

return bytes(x)


 "/data1/wangqian/venv_py3/lib/python3.7/site-packages/scapy/layers/tls/session.py", line 966, in __bytes__

built_packet = super(_GenericTLSSessionInheritance, self).__bytes__()


 "/data1/wangqian/venv_py3/lib/python3.7/site-packages/scapy/packet.py", line 492, in __bytes__

return self.build()


 "/data1/wangqian/venv_py3/lib/python3.7/site-packages/scapy/layers/tls/handshake.py", line 1028, in build

m = s.client_random + s.server_random + raw(p)


 "/data1/wangqian/venv_py3/lib/python3.7/site-packages/scapy/compat.py", line 53, in raw

return bytes(x)
TypeError: 'NoneType' object cannot be interpreted as an integer
