python 2.4 syntax fix
This commit is contained in:
parent
8bc90c6a62
commit
3619630972
1 changed files with 4 additions and 1 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue