Skip to content

Conversation

@joewesch
Copy link
Collaborator

@joewesch joewesch commented Feb 3, 2026

Closes: #803

The PaloAltoNetworksConfigParser was written contradictory to the rest of the parsers in that it raised an error when the configuration was empty. This PR changes that behavior to bring it in line with the rest of the parsers. I also added a unit test to verify that all parsers allow empty configurations and return an empty list.

NTC-4957

for _file in glob.glob(f"{MOCK_DIR}/find_all_children/{_network_os}/*{TXT_FILE}"):
find_all_children_parameters.append([_file, _network_os])
for _file in glob.glob(f"{MOCK_DIR}/find_children_w_parents/{_network_os}/*{TXT_FILE}"):
find_children_w_parents_parameters.append([_file, _network_os])
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just changing network_os to _network_os as the loop variable so that we don't perpetuate copy/pasting the same pylint disable comment over and over...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Palo Alto parser raise exception for empty configurations

3 participants