[deployment_handler] Fix apt-cache to get installed version 61/29561/1
authorCiprian Barbu <ciprian.barbu@enea.com>
Wed, 1 Mar 2017 13:25:28 +0000 (15:25 +0200)
committerCiprian Barbu <ciprian.barbu@enea.com>
Wed, 1 Mar 2017 13:29:53 +0000 (15:29 +0200)
commite959c3e4c7bcf985d37e9941f89917b56f2c155f
tree7592dcbc2ce8553ee4b7854fbe543f5cf6f2f4cd
parent9eee788eff3f2920cd58d22f8db538482181ebbd
[deployment_handler] Fix apt-cache to get installed version

In case multiple versions of a package exist on the repo, the old method using
apt-cache show opendaylight returned everything available rather than what was
actually installed. Using apt-cache policy opendaylight is more appropriate.

Change-Id: I8068c18ab25ca532988f24277fd48a4c42647891
Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
modules/opnfv/deployment/fuel/adapter.py