Fixing gce compile time errors irt exception handling for Python 3 (#3845)

This commit is contained in:
@ 2016-06-03 06:35:34 -07:00 committed by Matt Clay
commit 13bebda244
5 changed files with 29 additions and 29 deletions

View file

@ -371,7 +371,7 @@ def create_instances(module, gce, instance_names):
instance_external_ip = gce.ex_get_address(instance_external_ip)
else:
instance_external_ip = 'ephemeral'
except GoogleBaseError, e:
except GoogleBaseError as e:
module.fail_json(msg='Unexpected error attempting to get a static ip %s, error: %s' % (external_ip, e.value))
else:
instance_external_ip = external_ip