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:
nsren 2016-03-17 05:01:50 +05:30 committed by Michael James Hoppal
parent 64a30969af
commit 1281e51809
2 changed files with 2 additions and 1 deletions

View File

@ -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:

View File

@ -7,6 +7,7 @@ oslo.log
oslo.middleware
oslo.serialization
oslo.utils
oslo.vmware
PyYAML
gearman>=2.0.2,<2.1