mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 06:31:23 -07:00
Fixing gce compile time errors irt exception handling for Python 3 (#3845)
This commit is contained in:
parent
950931144f
commit
13bebda244
5 changed files with 29 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue