From eb6178995e8319695fba7c72f47f92066b9623bd Mon Sep 17 00:00:00 2001 From: Niklaus Xie Date: Tue, 12 Oct 2021 16:11:43 +0800 Subject: [PATCH] fix travis --- .travis.yml | 3 ++- f5_openstack_agent/lbaasv2/drivers/bigip/service_adapter.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 44ee45572..36ada0c0e 100755 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,7 @@ before_install: - git config --global user.name "Travis F5 Openstack" - docker pull f5devcentral/containthedocs:latest install: + - python -m pip install pip==19.0.3 - pip install tox - pip install -r requirements.style.txt script: @@ -36,7 +37,7 @@ script: - echo "stdeb.cfg:" - cat f5-openstack-agent-dist/deb_dist/stdeb.cfg - f5-openstack-agent-dist/scripts/package_agent.sh "redhat" "7" - - f5-openstack-agent-dist/scripts/package_agent.sh "redhat" "6" + # - f5-openstack-agent-dist/scripts/package_agent.sh "redhat" "6" - f5-openstack-agent-dist/scripts/package_agent.sh "ubuntu" "14.04" - sudo chown -R travis:travis ${DIST_REPO}/rpms/build - sudo chown -R travis:travis ${DIST_REPO}/deb_dist/*.deb diff --git a/f5_openstack_agent/lbaasv2/drivers/bigip/service_adapter.py b/f5_openstack_agent/lbaasv2/drivers/bigip/service_adapter.py index 6e2947255..991f46c3f 100644 --- a/f5_openstack_agent/lbaasv2/drivers/bigip/service_adapter.py +++ b/f5_openstack_agent/lbaasv2/drivers/bigip/service_adapter.py @@ -367,7 +367,8 @@ def _map_pool(self, loadbalancer, lbaas_pool, lbaas_hm, lbaas_members): if lbaas_pool.get('priority_group_least_member'): LOG.info('setting to priority_group_least_member') LOG.info(lbaas_pool.get('priority_group_least_member')) - pool['minActiveMembers'] = lbaas_pool['priority_group_least_member'] + pool['minActiveMembers'] = \ + lbaas_pool['priority_group_least_member'] else: LOG.info('setting to priority_group_least_member 0') pool['minActiveMembers'] = 0