diff options
author | asynet <asynet@users.noreply.github.com> | 2015-12-21 21:39:29 +0000 |
---|---|---|
committer | asynet <asynet@users.noreply.github.com> | 2015-12-21 21:39:29 +0000 |
commit | 8e6d2d15dfcbfd01547ac33ba78f7e88ba3ef292 (patch) | |
tree | 295a4a9e2572a7e59b144873ccc98e8cc3ec8b50 /lib/oxidized/model/fortios.rb | |
parent | 9b653ac79e86ad9efdcc303562cd1b1d20c8b03f (diff) |
Update fortios.rb
Changing the regex makes possible to backup devices with FortiOS 4.x and long names
Diffstat (limited to 'lib/oxidized/model/fortios.rb')
-rw-r--r-- | lib/oxidized/model/fortios.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb index 2c796cb..a9d219c 100644 --- a/lib/oxidized/model/fortios.rb +++ b/lib/oxidized/model/fortios.rb @@ -2,7 +2,7 @@ class FortiOS < Oxidized::Model comment '# ' - prompt /^([-\w\.]+(\s[\(\w\-\.\)]+)?\s?[#>]\s?)$/ + prompt /^([-\w\.]+(\s[\(\w\-\.\)]+)?\~?\s?[#>]\s?)$/ cmd :all do |cfg, cmdstring| new_cfg = comment "COMMAND: #{cmdstring}\n" |