Skip to content

Commit

Permalink
Pools 2 (ansible#44)
Browse files Browse the repository at this point in the history
* major redo of doc generation

* major redo of doc generation

Change-Id: Ic46dbc4ae1431a9ac882c88fbf0af56dd8b40d9a

* Fix typo on get_pools vs ex_get_pools

Change-Id: I478e06ac8ef7b129e894c31b8b23e1ad702a5cf7
  • Loading branch information
aimonb authored and relaxdiego committed Sep 15, 2016
1 parent a79c042 commit 95badd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ansible/dimensiondata/dimensiondata_load_balancer_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def list_pools(module, lb_driver):
def get_pool(module, lb_driver):
if is_uuid(module.params['name']):
try:
return lb_driver.get_pool(module.params['name'])
return lb_driver.ex_get_pool(module.params['name'])
except DimensionDataAPIException as e:
if e.code == 'RESOURCE_NOT_FOUND':
return False
Expand Down Expand Up @@ -319,7 +319,8 @@ def main():
create_pool(module, lb_driver, net_domain.id)
else:
module.exit_json(changed=False, msg="Load balancer pool already " +
"exists.", load_balancer_pool=pool_obj_to_dict(pool))
"exists.",
load_balancer_pool=pool_obj_to_dict(pool))
elif ensure == 'absent':
if pool is False:
module.exit_json(changed=False, msg="Load balancer pool with " +
Expand Down

0 comments on commit 95badd0

Please sign in to comment.