diff options
author | Tony Murray <murraytony@gmail.com> | 2016-02-13 13:09:57 -0600 |
---|---|---|
committer | Tony Murray <murraytony@gmail.com> | 2016-02-13 13:09:57 -0600 |
commit | a429cda397d880d769b8c47ac8941465bf0f91a3 (patch) | |
tree | 37e70594e155cd02a151f48a6e0f0c53a958bc6c /lib | |
parent | 96b15c70d0dedb464b191b01fdbeb2c4480c3697 (diff) |
Sort the config for AirOS
Usually the config is sorted, but sometimes modifying the config moves things around.
Using sort makes for nicer diffs.
Diffstat (limited to 'lib')
-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>" |