python 2.4 syntax fix

This commit is contained in:
Jason DeTiberus 2015-07-28 06:30:37 -04:00 committed by Matt Clay
parent 8bc90c6a62
commit 3619630972

View file

@ -340,7 +340,10 @@ class RhsmPools(object):
consumed(bool): if True list consumed pools, else list available pools (default False)
"""
args = "subscription-manager list"
args += " --consumed" if consumed else " --available"
if consumed:
args += " --consumed"
else:
args += " --available"
rc, stdout, stderr = self.module.run_command(args, check_rc=True)
products = []