From ccfd346a4d40d2cdc24128ff4549399a0d9f1565 Mon Sep 17 00:00:00 2001 From: Myles Penner Date: Mon, 19 Aug 2024 14:34:24 -0700 Subject: [PATCH] Fix pep8 error Summary of changes: - Fix minor formatting error triggered by upgrade from flake8 3.9.2 -> 7.1.1. - Bump flake8 for py312 compatibility (see related-pr) Related-PR: https://github.com/openstack-charmers/release-tools/pull/301 Change-Id: Id0f53ee333833b62078c0f5bedd3e55e63cfd422 --- hooks/neutron_api_utils.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/neutron_api_utils.py b/hooks/neutron_api_utils.py index f452ce7d..f4d854ae 100755 --- a/hooks/neutron_api_utils.py +++ b/hooks/neutron_api_utils.py @@ -807,7 +807,7 @@ def migrate_neutron_database(upgrade=False): return log('Migrating the neutron database.') - if(os_release('neutron-server') == 'juno' and + if (os_release('neutron-server') == 'juno' and config('neutron-plugin') == 'vsp'): nuage_vsp_juno_neutron_migration() else: diff --git a/tox.ini b/tox.ini index 57c2f4ec..0a594c83 100644 --- a/tox.ini +++ b/tox.ini @@ -65,7 +65,7 @@ deps = [testenv:pep8] basepython = python3 -deps = flake8==3.9.2 +deps = flake8==7.1.1 git+https://github.com/juju/charm-tools.git commands = flake8 {posargs} hooks unit_tests tests actions lib files charm-proof