Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
yoho-ansible-roles
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
root
6 years ago
Commit
c0ca19c0e811e05485168bbfe97fe134199a7df9
1 parent
0a2fefcc
Update bigdata inventory file
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
scripts/lb_manager/lb_action.py
scripts/lb_manager/lb_action.py
View file @
c0ca19c
...
...
@@ -84,6 +84,10 @@ def modify_alb_weight(SecretId, SecretKey, lb_id, domain, ip_weight_dict={}, hos
# listener : [http , https]
for
listener
in
lb_info
[
'data'
]:
if
listener
.
has_key
(
'rules'
):
pass
else
:
continue
for
rule
in
listener
[
'rules'
]:
if
rule
[
'domain'
]
==
domain
:
# domain match
listener_ids
[
listener
[
'listenerId'
]]
=
listener
[
'protocolType'
]
...
...
Please
register
or
login
to post a comment