1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

L #4089: Lint Firecracker client (#4584)

This commit is contained in:
Christian González 2020-04-22 16:22:47 +02:00 committed by GitHub
parent e28c737bc3
commit 6acf3f46d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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