Merge pull request #185 from NevroHelios/master

Issue #138: Using shlex.split instead str.split
This commit is contained in:
Hank Greenburg 2024-12-05 08:08:28 -08:00 committed by GitHub
commit 21fb28d090
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,7 @@ import sys
from collections import defaultdict from collections import defaultdict
from itertools import zip_longest from itertools import zip_longest
from typing import List from typing import List
from shlex import split
import attr import attr
import click import click
@ -589,7 +590,7 @@ class PanCtl:
parser = PanctlParser(self.commands) parser = PanctlParser(self.commands)
try: try:
args = parser.parse_args(result.split()) args = parser.parse_args(split(result, posix=False))
except ParseError: except ParseError:
continue continue