diff --git a/scripts/vmbuild.rb b/scripts/vmbuild.rb index 3a1e1187..fc5f058a 100644 --- a/scripts/vmbuild.rb +++ b/scripts/vmbuild.rb @@ -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)