Skip to content
Snippets Groups Projects
Commit fbd02568 authored by Josef Smrčka's avatar Josef Smrčka
Browse files

Merge branch 'jsmrcka-pylint' into 'master'

fix: disable less usefull pylint errors on specific lines

See merge request !32
parents 5c071e90 0e93cc06
No related branches found
No related tags found
1 merge request!32fix: disable less usefull pylint errors on specific lines
Pipeline #521448 waiting for manual action
......@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [1.7.1] - 2024-10-07
### Fix
- Disable less usefull pylint errors on specific lines.
## [1.7.0] - 2024-10-04
### Changed
- Refactored `migrate_rbd_images` function in `project-migrator`. The change adds a limited ability to specify
......
......@@ -214,7 +214,7 @@ def get_or_create_dst_server_networking_v1(args,
source_project_conn, destination_project_conn,
source_project, destination_project,
i_source_network_name)
i_destination_network = destination_project_conn.network.find_network(i_destination_network_name or i_dst_network.id,
i_destination_network = destination_project_conn.network.find_network(i_destination_network_name or i_dst_network.id, #pylint: disable=possibly-used-before-assignment
project_id=destination_project.id)
log_or_assert(args, f"F.3 Destination network exists ({i_destination_network})", i_destination_network)
......@@ -241,7 +241,7 @@ def get_or_create_dst_server_networking_v2(args,
source_project_conn, destination_project_conn,
source_project, destination_project,
i_src_server_port_network_name)
i_destination_network = destination_project_conn.network.find_network(i_dst_server_port_network_name or i_dst_network.id,
i_destination_network = destination_project_conn.network.find_network(i_dst_server_port_network_name or i_dst_network.id, #pylint: disable=possibly-used-before-assignment
project_id=destination_project.id)
# network may be shared (created in different project), so let's ask again w/o project_id selector
if not i_destination_network:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment