mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[openstack|compute] Fixed creating image of a server
This commit is contained in:
parent
9a0a5f2da2
commit
79c49d1cc0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue