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
This commit is contained in:
@@ -167,7 +167,7 @@ def process_is_running(pid):
|
|||||||
return _get_wmi_process(pid) is not None
|
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)
|
process = _get_wmi_process(pid)
|
||||||
if not process:
|
if not process:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user