Skip to content

Commit

Permalink
Merge pull request #552 from Fryguy/fix_json_issue
Browse files Browse the repository at this point in the history
Fix issue when newer json gem is not present

(cherry picked from commit 887d442)
  • Loading branch information
jrafanie authored and Fryguy committed Jul 7, 2023
1 parent 13e4e52 commit 02c11fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/vmbuild.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
# Set Storage directory in imagefactory config
imagefactory_config = CFG_DIR.join("imagefactory.conf")
require 'json'
json = JSON.load_file(imagefactory_config)
json = JSON.load(imagefactory_config.read)
json["image_manager_args"]["storage_path"] = STORAGE_DIR
File.write(imagefactory_config, json.to_json)

Expand Down

0 comments on commit 02c11fc

Please sign in to comment.