Skip to content

Commit

Permalink
Update firewareos.rb (ytti#2780)
Browse files Browse the repository at this point in the history
* Update firewareos.rb

Changed regex for prompt to accept the dash character and match with the <non-master> nodes of a fireware cluster.
Fixes ytti#2779

* Update CHANGELOG.md
  • Loading branch information
netdiver authored and nickhilliard committed Jun 15, 2023
1 parent d88d23c commit 9b30a92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
## Fixed

- fixed empty lines for ZyXEL GS1900 switches (@jluebbe)
- fixed prompt for Watchguard FirewareOS not matching the regex when the node is non-master (@netdiver)

## [0.29.1 - 2023-04-24]

Expand Down
2 changes: 1 addition & 1 deletion lib/oxidized/model/firewareos.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class FirewareOS < Oxidized::Model
using Refinements

prompt /^\[?\w*\]?\w*?(<\w*>)?(#|>)\s*$/
prompt /^\[?\w*\]?\w*?(<[\w-]*>)?(#|>)\s*$/
comment '-- '

cmd :all do |cfg|
Expand Down

0 comments on commit 9b30a92

Please sign in to comment.