Browse Source

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)
changes/01/771201/1
Lucian Petrut 10 months ago
committed by Slawek Kaplonski
parent
commit
80f4b8f9c6
  1. 2
      neutron/agent/windows/utils.py

2
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

Loading…
Cancel
Save