Skip to content

Commit dada8d0

Browse files
LB listener and info fix (#92)
LB listener and info fix Get rid of hashing lists Fix docu in info modules Test added Close #90 Close #91 Reviewed-by: None <None> Reviewed-by: Irina Pereiaslavskaia <None> Reviewed-by: Artem Goncharov <[email protected]>
1 parent 9b40977 commit dada8d0

File tree

8 files changed

+377
-13
lines changed

8 files changed

+377
-13
lines changed

plugins/modules/lb_certificate_info.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
EXAMPLES = '''
7171
# Get a lb certificate info.
7272
- lb_certificate_info:
73-
state: present
7473
name: certificate-test
7574
register: lb_cert
7675
'''

plugins/modules/lb_healthmonitor_info.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@
130130
EXAMPLES = '''
131131
# Get a lb health monitor info.
132132
- lb_healthmonitor_info:
133-
state: present
134133
name: hm-test
135134
register: healthmonitor
136135
'''

plugins/modules/lb_listener.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
type: int
4949
loadbalancer:
5050
description:
51-
- Specifies the associated load balancer.
51+
- Specifies the associated load balancer by ID or Name.
5252
type: str
5353
connection_limit:
5454
description:
@@ -151,7 +151,7 @@
151151
state: present
152152
protocol_port: 80
153153
protocol: TCP
154-
loadbalancer_id: "0416b6f1-877f-4a51-987e-978b3f084253"
154+
loadbalancer: "0416b6f1-877f-4a51-987e-978b3f084253"
155155
name: listener-test
156156
admin_state_up: true
157157
@@ -161,7 +161,7 @@
161161
protocol_port: 443
162162
protocol: terminated_https
163163
default_tls_container_ref: "02dcd56799e045bf8b131533cc911dd6"
164-
loadbalancer_id: "0416b6f1-877f-4a51-987e-978b3f084253"
164+
loadbalancer: "0416b6f1-877f-4a51-987e-978b3f084253"
165165
name: listener-test
166166
admin_state_up: true
167167
@@ -171,7 +171,7 @@
171171
protocol_port: 443
172172
protocol: terminated_https
173173
default_tls_container_ref: "02dcd56799e045bf8b131533cc911dd6"
174-
loadbalancer_id: "0416b6f1-877f-4a51-987e-978b3f084253"
174+
loadbalancer: "0416b6f1-877f-4a51-987e-978b3f084253"
175175
name: listener-test
176176
admin_state_up: true
177177
sni_container_refs: ["e15d1b5000474adca383c3cd9ddc06d4", "5882325fd6dd4b95a88d33238d293a0f"]
@@ -277,11 +277,11 @@ def run(self):
277277
mattrs['admin_state_up'] = admin_state_up_filter
278278
if 'default_pool_id' in attrs and lb_listener.default_pool_id != attrs['default_pool_id']:
279279
mattrs['default_pool_id'] = attrs['default_pool_id']
280-
if default_tls_container_ref_filter and\
280+
if default_tls_container_ref_filter and \
281281
lb_listener.default_tls_container_ref != default_tls_container_ref_filter:
282282
mattrs['default_tls_container_ref'] = default_tls_container_ref_filter
283-
if sni_container_refs_filter and\
284-
hash(lb_listener.sni_container_refs) != hash(sni_container_refs_filter):
283+
if sni_container_refs_filter and \
284+
lb_listener.sni_container_refs != sni_container_refs_filter:
285285
mattrs['sni_container_refs'] = sni_container_refs_filter
286286
if mattrs:
287287
changed = True

plugins/modules/lb_listener_info.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
EXAMPLES = '''
7777
# Get a lb listener info.
7878
- lb_listener_info:
79-
state: present
8079
name: listener-test
8180
register: lb_lstnr_info
8281
'''

plugins/modules/lb_member_info.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
EXAMPLES = '''
9898
# Get a lb member info.
9999
- lb_member_info:
100-
state: present
101100
name: member-test
102101
register: lb_mmbr_info
103102
'''

plugins/modules/lb_pool_info.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
EXAMPLES = '''
7777
# Get a lb pool info.
7878
- lb_pool_info:
79-
state: present
8079
name: pool-test
8180
register: lb_pool_info
8281
'''

plugins/modules/loadbalancer_info.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
username: admin
9595
password: passme
9696
project_name: admin
97-
state: present
9897
name: my_lb
9998
register: lb_info
10099
'''

0 commit comments

Comments
 (0)