python 2.4 syntax fix

This commit is contained in:
Jason DeTiberus 2015-07-28 06:30:37 -04:00
parent 0802102634
commit c458b5e96c

View file

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