diff --git a/lib/fog/openstack/requests/compute/create_image.rb b/lib/fog/openstack/requests/compute/create_image.rb index 7efc4238a..79299f396 100644 --- a/lib/fog/openstack/requests/compute/create_image.rb +++ b/lib/fog/openstack/requests/compute/create_image.rb @@ -9,7 +9,7 @@ module Fog 'metadata' => metadata }} data = server_action(server_id, body) - image_id = data.headers["Location"].scan(/.*\/(.*)/).flatten + image_id = data.headers["Location"].scan(/.*\/(.*)/).flatten[0] get_image_details(image_id) end