diff options
author | Saku Ytti <saku@ytti.fi> | 2016-06-09 12:32:51 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2016-06-09 12:32:51 +0300 |
commit | 61eb0f24eb9d246a9b92742321770667878ecc59 (patch) | |
tree | cbe0ba86b89af124917f57bc61e18d9a4226a51b /lib | |
parent | d77e043a724698c3687665f9d00e8c49a520c83a (diff) |
removing debugging
closes #465
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/asa.rb | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/oxidized/model/asa.rb b/lib/oxidized/model/asa.rb index 48e6bf4..317463d 100644 --- a/lib/oxidized/model/asa.rb +++ b/lib/oxidized/model/asa.rb @@ -33,18 +33,17 @@ class ASA < Oxidized::Model # backup any xml referenced in the configuration. anyconnect_profiles = cfg.scan(Regexp.new('(\sdisk0:/.+\.xml)')).flatten anyconnect_profiles.each do |profile| - cfg << (comment profile + "\n" ) - cmd ("more" + profile) do |xml| - cfg << (comment xml) - end + cfg << (comment profile + "\n" ) + cmd ("more" + profile) do |xml| + cfg << (comment xml) + end end # if DAP is enabled, also backup dap.xml if cfg.rindex(/dynamic-access-policy-record\s(?!DfltAccessPolicy)/) - cfg << (comment "disk0:/dap.xml\n") - cmd "more disk0:/dap.xml" do |xml| - cfg << (comment xml) - puts xml - end + cfg << (comment "disk0:/dap.xml\n") + cmd "more disk0:/dap.xml" do |xml| + cfg << (comment xml) + end end cfg end |