From 59ef20812b61aa2400ec1a29344477b240294c11 Mon Sep 17 00:00:00 2001 From: Michael Ablassmeier Date: Mon, 20 Apr 2020 19:19:45 +0000 Subject: [PATCH] fix handle_box_image.rb:89: syntax error --- lib/vagrant-libvirt/action/handle_box_image.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/vagrant-libvirt/action/handle_box_image.rb b/lib/vagrant-libvirt/action/handle_box_image.rb index 93256aa..9f705b1 100644 --- a/lib/vagrant-libvirt/action/handle_box_image.rb +++ b/lib/vagrant-libvirt/action/handle_box_image.rb @@ -80,14 +80,17 @@ module VagrantPlugins message << " in storage pool #{config.storage_pool_name}." @logger.info(message) + @storage_volume_uid = storage_uid env + @storage_volume_gid = storage_gid env + begin fog_volume = env[:machine].provider.driver.connection.volumes.create( name: env[:box_volume_name], allocation: "#{box_image_size / 1024 / 1024}M", capacity: "#{box_virtual_size}G", format_type: box_format, - owner: storage_uid env, - group: storage_gid env, + owner: @storage_volume_uid, + group: @storage_volume_gid, pool_name: config.storage_pool_name ) rescue Fog::Errors::Error => e