Fix command used to auto-detect virt type
If egrep is not located at /usr/bin/egrep, the os_nova "Get virt type value and store as var" task will silently fail causing the nova_virt_type to always default to qemu. Update the command to include a lookup for the correct path to egrep. Change-Id: I378b555d157ee3f39d682c3ddadb6e3ffd933503 Closes-Bug: #1531670
This commit is contained in:
parent
80f0c85ada
commit
51d336aa12
@ -15,7 +15,7 @@
|
||||
|
||||
- name: Get virt type value and store as var
|
||||
shell: |
|
||||
/usr/bin/egrep -c '(vmx|svm)' /proc/cpuinfo
|
||||
`which egrep` -c '(vmx|svm)' /proc/cpuinfo
|
||||
register: virt_type_value
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user