diff options
author | Ciprian Barbu <ciprian.barbu@enea.com> | 2017-03-01 15:25:28 +0200 |
---|---|---|
committer | Ciprian Barbu <ciprian.barbu@enea.com> | 2017-03-01 15:29:53 +0200 |
commit | e959c3e4c7bcf985d37e9941f89917b56f2c155f (patch) | |
tree | 7592dcbc2ce8553ee4b7854fbe543f5cf6f2f4cd /modules/opnfv/deployment/fuel | |
parent | 9eee788eff3f2920cd58d22f8db538482181ebbd (diff) |
[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>
Diffstat (limited to 'modules/opnfv/deployment/fuel')
-rw-r--r-- | modules/opnfv/deployment/fuel/adapter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/opnfv/deployment/fuel/adapter.py b/modules/opnfv/deployment/fuel/adapter.py index a71d6cbf9..a217767ba 100644 --- a/modules/opnfv/deployment/fuel/adapter.py +++ b/modules/opnfv/deployment/fuel/adapter.py @@ -176,7 +176,7 @@ class FuelAdapter(manager.DeploymentHandler): return version def get_sdn_version(self): - cmd = "apt-cache show opendaylight|grep Version" + cmd = "apt-cache policy opendaylight|grep Installed" version = None for node in self.nodes: if manager.Role.ODL in node.roles and node.is_active(): |