vCenter detection reads hypervisor.conf
- modify vcenter detection plugin to read the details from hypervisor.conf instead of nova.conf - oslo.vmware dependency added to requirements.txt Change-Id: I6f7aa966ccdad711269a643eebffa7396359aa72
This commit is contained in:
parent
64a30969af
commit
1281e51809
|
@ -24,7 +24,7 @@ class VCenter(Plugin):
|
|||
try:
|
||||
cmd = proc.cmdline()
|
||||
if len(cmd) > 2 and 'python' in cmd[0] and 'nova-compute' in cmd[1]:
|
||||
param = [cmd.index(y) for y in cmd if 'nova.conf' in y][0]
|
||||
param = [cmd.index(y) for y in cmd if 'hypervisor.conf' in y][0]
|
||||
if '=' in cmd[param]:
|
||||
nova_conf = cmd[param].split('=')[1]
|
||||
else:
|
||||
|
|
|
@ -7,6 +7,7 @@ oslo.log
|
|||
oslo.middleware
|
||||
oslo.serialization
|
||||
oslo.utils
|
||||
oslo.vmware
|
||||
|
||||
PyYAML
|
||||
gearman>=2.0.2,<2.1
|
||||
|
|
Loading…
Reference in New Issue