diff options
author | ytti <saku@ytti.fi> | 2016-02-14 12:43:45 +0200 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2016-02-14 12:43:45 +0200 |
commit | 2a997a6e21c3583d8cc0182d736b4fad638df7b7 (patch) | |
tree | 37e70594e155cd02a151f48a6e0f0c53a958bc6c /lib/oxidized/model/airos.rb | |
parent | 96b15c70d0dedb464b191b01fdbeb2c4480c3697 (diff) | |
parent | a429cda397d880d769b8c47ac8941465bf0f91a3 (diff) |
Merge pull request #312 from murrant/patch-1
Sort the config for AirOS
Diffstat (limited to 'lib/oxidized/model/airos.rb')
-rw-r--r-- | lib/oxidized/model/airos.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/airos.rb b/lib/oxidized/model/airos.rb index 316c4f0..775005f 100644 --- a/lib/oxidized/model/airos.rb +++ b/lib/oxidized/model/airos.rb @@ -7,7 +7,7 @@ class Airos < Oxidized::Model cfg.split("\n").map { |line| "# #{line}" }.join("\n") + "\n" end - cmd 'cat /tmp/system.cfg' + cmd 'sort /tmp/system.cfg' cmd :secret do |cfg| cfg.gsub! /^(users\.\d+\.password|snmp\.community)=.+/, "# \\1=<hidden>" |