Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

hotspotlogin: use YAML.dump instead of #to_yaml

  • Loading branch information...
commit bb97cf39dbe56ce83743dfb278be5212758caeb7 1 parent e889f37
Guido De Rosa authored
4 modules/hotspotlogin/lib/onboard/service/hotspotlogin.rb
@@ -44,7 +44,7 @@ def save # use YAML, not Marshal, this time
44 44 FileUtils.mkdir_p File.dirname SAVEFILE
45 45 end
46 46 File.open SAVEFILE, 'w' do |f|
47   - f.write data.to_yaml
  47 + f.write YAML.dump data
48 48 end
49 49 FileUtils.chmod 0640, SAVEFILE
50 50 end
@@ -218,7 +218,7 @@ def change_from_HTTP_request!(params)
218 218 end
219 219
220 220 File.open CONFFILE, 'w' do |f|
221   - f.write conf_h.to_yaml
  221 + f.write YAML.dump conf_h
222 222 end
223 223 FileUtils.chmod 0640, CONFFILE
224 224 end

0 comments on commit bb97cf3

Please sign in to comment.
Something went wrong with that request. Please try again.