diff --git a/gns3server/compute/builtin/nodes/cloud.py b/gns3server/compute/builtin/nodes/cloud.py index 173604582..8e40e5ea6 100644 --- a/gns3server/compute/builtin/nodes/cloud.py +++ b/gns3server/compute/builtin/nodes/cloud.py @@ -323,7 +323,7 @@ class Cloud(BaseNode): if port_info["type"] == "ethernet": network_interfaces = [interface["name"] for interface in self._interfaces()] - if not port_info["interface"] in network_interfaces: + if port_info["interface"] not in network_interfaces: raise NodeError( f"Interface '{port_info['interface']}' could not be found on this system, please update '{self.name}'" ) diff --git a/tests/controller/test_export_project.py b/tests/controller/test_export_project.py index 709f8ad07..5927a7e66 100644 --- a/tests/controller/test_export_project.py +++ b/tests/controller/test_export_project.py @@ -413,4 +413,4 @@ async def test_export_with_ignoring_snapshots(tmpdir, project): await write_file(str(tmpdir / "zipfile.zip"), z) with zipfile.ZipFile(str(tmpdir / "zipfile.zip")) as myzip: - assert not os.path.join("snapshots", "snap.gns3project") in [f.filename for f in myzip.filelist] + assert os.path.join("snapshots", "snap.gns3project") not in [f.filename for f in myzip.filelist]