mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
parent
e28c737bc3
commit
6acf3f46d9
@ -35,10 +35,10 @@ class FirecrackerClient
|
||||
API_RETRY = 5 # Attempts, in case a response is failed to read from FC
|
||||
|
||||
def initialize(uuid)
|
||||
socket_path = "/srv/jailer/firecracker/#{uuid}/root/run/firecracker.socket"
|
||||
path = "/srv/jailer/firecracker/#{uuid}/root/run/firecracker.socket"
|
||||
# rubocop:disable Style/RescueStandardError
|
||||
begin
|
||||
@socket = socket(socket_path)
|
||||
@socket = socket(path)
|
||||
rescue
|
||||
raise "Failed to open socket: #{socket_path}"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user