Skip to content

Commit

Permalink
Merge branch 'devel' into minor-changes-and-bug-fixes
Browse files Browse the repository at this point in the history
# Conflicts:
#	cloud/centurylink/clc_publicip.py
  • Loading branch information
popurisiva committed Nov 28, 2016
1 parent f2b5968 commit bb97b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/python/clc_ansible_module/clc_publicip.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def _add_publicip_to_server(self, server, ports_to_expose, source_restrictions=N
result = None
try:
result = server.PublicIPs().Add(ports=ports_to_expose, source_restrictions=source_restrictions)
except CLCException, ex:
except CLCException as ex:
self.module.fail_json(msg='Failed to add public ip to the server : {0}. {1}'.format(
server.id, ex.response_text
))
Expand Down Expand Up @@ -309,7 +309,7 @@ def _remove_publicip_from_server(self, server):
try:
for ip_address in server.PublicIPs().public_ips:
result = ip_address.Delete()
except CLCException, ex:
except CLCException as ex:
self.module.fail_json(msg='Failed to remove public ip from the server : {0}. {1}'.format(
server.id, ex.response_text
))
Expand Down

0 comments on commit bb97b61

Please sign in to comment.