Make rax_clb_ssl module pass sanity check for py3
This commit is contained in:
parent
2ceb672016
commit
1bca0847a4
2 changed files with 3 additions and 4 deletions
|
@ -156,7 +156,7 @@ def cloud_load_balancer_ssl(module, loadbalancer, state, enabled, private_key,
|
|||
if needs_change:
|
||||
try:
|
||||
balancer.add_ssl_termination(**ssl_attrs)
|
||||
except pyrax.exceptions.PyraxException, e:
|
||||
except pyrax.exceptions.PyraxException as e:
|
||||
module.fail_json(msg='%s' % e.message)
|
||||
changed = True
|
||||
elif state == 'absent':
|
||||
|
@ -164,7 +164,7 @@ def cloud_load_balancer_ssl(module, loadbalancer, state, enabled, private_key,
|
|||
if existing_ssl:
|
||||
try:
|
||||
balancer.delete_ssl_termination()
|
||||
except pyrax.exceptions.PyraxException, e:
|
||||
except pyrax.exceptions.PyraxException as e:
|
||||
module.fail_json(msg='%s' % e.message)
|
||||
changed = True
|
||||
|
||||
|
@ -176,7 +176,7 @@ def cloud_load_balancer_ssl(module, loadbalancer, state, enabled, private_key,
|
|||
|
||||
try:
|
||||
balancer.update(httpsRedirect=https_redirect)
|
||||
except pyrax.exceptions.PyraxException, e:
|
||||
except pyrax.exceptions.PyraxException as e:
|
||||
module.fail_json(msg='%s' % e.message)
|
||||
changed = True
|
||||
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
/cloud/misc/virt_pool.py
|
||||
/cloud/profitbricks/profitbricks.py
|
||||
/cloud/profitbricks/profitbricks_volume.py
|
||||
/cloud/rackspace/rax_clb_ssl.py
|
||||
/clustering/consul.py
|
||||
/clustering/consul_acl.py
|
||||
/clustering/consul_kv.py
|
||||
|
|
Loading…
Reference in a new issue