Skip to content

Commit

Permalink
seinfo: Fix port range issue uncovered by policyrep stub fixes.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris PeBenito <[email protected]>
  • Loading branch information
pebenito committed Mar 20, 2024
1 parent 32b1994 commit b9a9e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seinfo
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ try:
parser.error("Enter a pkey number or range, e.g. 0x22 or 0x6000-0x6020")

if len(pkeys) == 2:
ibpkq.pkeys = setools.IbpkeyconRange(pkeys)
ibpkq.pkeys = setools.IbpkeyconRange(*pkeys)
elif len(pkeys) == 1:
ibpkq.pkeys = setools.IbpkeyconRange(pkeys[0], pkeys[0])
else:
Expand Down Expand Up @@ -248,7 +248,7 @@ try:
parser.error("Enter a port number or range, e.g. 22 or 6000-6020")

if len(ports) == 2:
pcq.ports = setools.PortconRange(ports)
pcq.ports = setools.PortconRange(*ports)
elif len(ports) == 1:
pcq.ports = setools.PortconRange(ports[0], ports[0])
else:
Expand Down

0 comments on commit b9a9e6c

Please sign in to comment.