From 77db2cf7bd383b224b8f98b2aafd20571d055c79 Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Wed, 18 Nov 2020 12:57:11 +0200 Subject: [PATCH] Add missing "process_name" argument on Windows A recent change [1] added a "process_name" argument to the "pid_invoked_with_cmdline" function. The Windows version wasn't updated, so the ovs agent is now failing [2]. This change adds the missing argument to the Windows "pid_invoked_with_cmdline" function. [1] If33c49c0f3e1e6696f5d2aa4008b287dc3f76c61 [2] http://paste.openstack.org/raw/800146/ Change-Id: I360ba1d074ecfac66f52656b61b5c27db72e9d26 --- neutron/agent/windows/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/agent/windows/utils.py b/neutron/agent/windows/utils.py index 2203518f385..a4fb059d638 100644 --- a/neutron/agent/windows/utils.py +++ b/neutron/agent/windows/utils.py @@ -167,7 +167,7 @@ def process_is_running(pid): return _get_wmi_process(pid) is not None -def pid_invoked_with_cmdline(pid, expected_cmd): +def pid_invoked_with_cmdline(pid, expected_cmd, process_name=None): process = _get_wmi_process(pid) if not process: return False