Correct the command that gets the PID of nova_libvirt_launcher.sh.

The problem is due to a bug that makes the command get two numbers concatenated instead of one.

Closes-Bug: #1970755

Signed-off-by: Juan Pablo Martí <jmarti@redhat.com>
Change-Id: I0295e31bbaba96c7e60a872a89be7e0ddd07bd36
This commit is contained in:
Juan Pablo Martí 2022-03-21 16:07:55 -03:00 committed by Jiri Podivin
parent c6ad39a9e4
commit bf17c453ec
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@
- name: Get nova_libvirt_launcher Process
become: true
shell: |-
ps -Leaf | grep nova_libvirt_launcher.sh | grep -v pts | awk '{printf "%s", $2}'
ps -Leaf | grep nova_libvirt_launcher.sh | grep -v pts -m 1 | awk '{print $2}'
register: nova_libvirt_launcher
- name: Get nova libvirt namespace processes