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>
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():