Remove weird PY3 restriction

The issue with different behavior between Python 2 and 3 was fixed in
ffdae27877 around the same time the
original PR was opened. There is no need to restrict this code
exclusively to Python 3.
This commit is contained in:
Erik Johnson 2020-04-20 21:23:41 -05:00 committed by Daniel Wozniak
parent 15a0b35f8e
commit af884cef10

View file

@ -2372,10 +2372,7 @@ def request_instance(vm_):
"'pd-standard', 'pd-ssd'"
)
# GCE accelerator options are only supported as of libcloud >= 2.3.0
# and Python 3+ is required so that libcloud will detect a type of
# 'string' rather than 'unicode'
if LIBCLOUD_VERSION_INFO >= (2, 3, 0) and isinstance("test", str):
if LIBCLOUD_VERSION_INFO >= (2, 3, 0):
kwargs.update(
{