Skip to content

Commit

Permalink
Don't use deprecated API call
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Feb 22, 2016
1 parent 156de8f commit 0e62193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/storage/abstract_device_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def initialize(devicegraph)
#
def load_yaml_file(filename)
begin
File.open(filename) { |file| YAML.load_documents(file) { |doc| build_tree(doc) } }
File.open(filename) { |file| YAML.load_stream(file, filename) { |doc| build_tree(doc) } }
rescue SystemCallError => ex
log.error("#{ex}")
raise
Expand Down

0 comments on commit 0e62193

Please sign in to comment.