Skip to content

Commit

Permalink
Handling virtual package contrail-vrouter in contrail-status.
Browse files Browse the repository at this point in the history
Change-Id: Ic6d722117700609fe845a4acd44203af3375ad3f
Closes-Bug: 1611986
  • Loading branch information
cijohnson committed Aug 11, 2016
1 parent b443e9d commit ba8ca34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config/utils/contrail-status.py
Expand Up @@ -381,6 +381,9 @@ def supervisor_status(nodetype, options):
def package_installed(pkg):
if distribution == 'debian':
cmd = "dpkg-query -W -f=${VERSION} " + pkg
# Handling virtual package in ubuntu
if pkg == 'contrail-vrouter':
cmd = "dpkg -l " + pkg
else:
cmd = "rpm -q --qf %{V} " + pkg
with open(os.devnull, "w") as fnull:
Expand Down

0 comments on commit ba8ca34

Please sign in to comment.