lib/fog/oraclecloud/requests/compute/create_instance.rb in fog-oraclecloud-0.1.16 vs lib/fog/oraclecloud/requests/compute/create_instance.rb in fog-oraclecloud-0.1.17
- old
+ new
@@ -68,10 +68,10 @@
'reverse_dns' => true,
'site' => '',
'storage_attachments' => [],
'tags' => [],
'uri'=>"#{@api_endpoint}/instance/Compute-#{@identity_domain}/#{@username}/#{name}",
- 'vcable_id'=>"/Compute-#{@identity_domain}/#{@username}/", # TODO: add random id
+ 'vcable_id'=>"/Compute-#{@identity_domain}/#{@username}/#{SecureRandom.uuid}", # TODO: add random id
'virtio'=>nil,
'vnc'=>'127.0.0.1:5900'
}
response.status = 201
response.body = {