summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/openwrt.rb
diff options
context:
space:
mode:
authorWild Kat <wk@users.noreply.github.com>2018-09-12 11:23:45 +0200
committerGitHub <noreply@github.com>2018-09-12 11:23:45 +0200
commit7c02a230dc970c2946770f6893e35c627b6b1ec0 (patch)
treed77395371f89aa8efe01d7fa8a194fb3bf9ed58c /lib/oxidized/model/openwrt.rb
parent58c5310ae1406f1b6d7f1794d8574597c8698138 (diff)
add a new line after guard clauses for better visual flow (#1520)
Diffstat (limited to 'lib/oxidized/model/openwrt.rb')
-rw-r--r--lib/oxidized/model/openwrt.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/openwrt.rb b/lib/oxidized/model/openwrt.rb
index 7ba9e98..ce7cf76 100644
--- a/lib/oxidized/model/openwrt.rb
+++ b/lib/oxidized/model/openwrt.rb
@@ -62,6 +62,7 @@ class OpenWrt < Oxidized::Model
end
@mtdpartitions.scan(/(\w+):\s+\w+\s+\w+\s+"(.*)"/).each do |partition, name|
next unless vars(:openwrt_backup_partitions) && partitions_to_backup.include?(name)
+
Oxidized.logger.debug "Exporting partition - #{name}(#{partition})"
cfg << comment("#### Partition: #{name} /dev/#{partition} #####")
cfg << comment("Decode using 'echo -en <data> | gzip -dc > #{name}'")