提交 ad7df045 编写于 作者: J Junxiang Li

Minorfix: Fixup the type error

Signed-off-by: NJunxiang Li <junli@redhat.com>
上级 35339db2
......@@ -134,8 +134,8 @@ def safe_kill(pid, signal): # pylint: disable=W0621
:param signal: Signal number.
"""
if get_owner_id(pid) == 0:
kill_cmd = 'kill -%d %d' % (int(signal), pid)
if get_owner_id(int(pid)) == 0:
kill_cmd = 'kill -%d %d' % (int(signal), int(pid))
try:
run(kill_cmd, sudo=True)
return True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册