Skip to content

Commit

Permalink
Merge pull request #180 from realvitya/fix_fortios_prompt
Browse files Browse the repository at this point in the history
fix/fortios - fix prompt regex
  • Loading branch information
carlmontanari authored Oct 15, 2024
2 parents 8f5d131 + 5defcb0 commit 6f047fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scrapli_community/fortinet/fortios/fortinet_fortios.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"async": AsyncFortinetFortiOSDriver,
},
"defaults": {
"comms_prompt_pattern": r"[\w_-]+ (\(\w+\) )?[$#]",
"comms_prompt_pattern": r"[\w_-]+ (\([\w-]+\) )?[$#]",
"sync_on_open": default_sync_on_open,
"async_on_open": default_async_on_open,
"sync_on_close": default_sync_on_close,
Expand Down
1 change: 1 addition & 0 deletions tests/unit/fortinet/fortios/test_fortinet_fortios.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"SCRAPLI-FORTIGATE $ ", # remote admin root prompt
"SCRAPLI-FORTIGATE (global) # ", # global context
"SCRAPLI-FORTIGATE (interface) # ", # interface config context
"SCRAPLI-FORTIGATE (ha-mgmt-interfaces) # ", # subsection with dashes
"SCRAPLI-FORTIGATE (vdom) # ", # vdom config context
"SCRAPLI-FORTIGATE (testvdom) # ", # a user defined vdom context
],
Expand Down

0 comments on commit 6f047fb

Please sign in to comment.