Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Config may contain "#", identify prompt by " # " instead of "#" #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyFG/fortios.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def execute_command(self, command):
# We look for the prompt and remove it
i = 0
for line in output:
current_line = line.split('#')
current_line = line.split(' # ')

if len(current_line) > 1:
output[i] = current_line[1]
Expand Down