From 9a437e49bcc0ef53cf910926249005bf478adcfa Mon Sep 17 00:00:00 2001 From: wuensche Date: Wed, 29 Jul 2026 21:02:17 +0200 Subject: [PATCH] fix using undefined variable Closes-Bug: #2162084 Change-Id: I3276aa8613165a98bd5fafa1c7830039f95ad4bb Signed-off-by: Daniel Wuensche --- changelogs/fragments/undefined_variable.yaml | 3 +++ plugins/modules/lb_pool.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/undefined_variable.yaml diff --git a/changelogs/fragments/undefined_variable.yaml b/changelogs/fragments/undefined_variable.yaml new file mode 100644 index 00000000..02b833b6 --- /dev/null +++ b/changelogs/fragments/undefined_variable.yaml @@ -0,0 +1,3 @@ +--- +bugfixes: + - lb_pool.py - Fix using undefined variable diff --git a/plugins/modules/lb_pool.py b/plugins/modules/lb_pool.py index db7bf0af..6d36d563 100644 --- a/plugins/modules/lb_pool.py +++ b/plugins/modules/lb_pool.py @@ -235,7 +235,7 @@ class LoadBalancerPoolModule(OpenStackModule): loadbalancer_name_or_id, ignore_missing=False) # Field load_balancer_id is not returned from self.conn.\ # load_balancer.find_load_balancer() so use load_balancers instead. - if listener['load_balancers'] != [dict(id=loadbalancer.id)]: + if pool['loadbalancers'] != [dict(id=loadbalancer.id)]: non_updateable_keys.append('loadbalancer_id') if non_updateable_keys: