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
(cherry picked from commit 77db2cf7bd)
This commit is contained in:
Lucian Petrut 2020-11-18 12:57:11 +02:00 committed by Slawek Kaplonski
parent fa7d3db688
commit 80f4b8f9c6
1 changed files with 1 additions and 1 deletions

View File

@ -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