python 2.4 syntax fix
This commit is contained in:
parent
0802102634
commit
c458b5e96c
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)
|
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 = []
|
||||||
|
|
Loading…
Reference in a new issue