1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

L #-: Fix linting for FC

This commit is contained in:
Ruben S. Montero 2020-03-10 12:25:08 +01:00
parent ad35e83ba4
commit 6f04518307
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -227,12 +227,12 @@ class MicroVM
end
# Clean resources and directories after shuttingdown the microVM
def clean(delete=true)
def clean(delete = true)
cgroup_path = @one.fcrc[:cgroup_location]
timeout = Integer(@one.fcrc[:cgroup_delete_timeout])
params = "-c #{cgroup_path} -v #{@one.vm_name} -t #{timeout}"
params << " -o" unless delete
params << ' -o' unless delete
cmd = "sudo #{@clean_sh} #{params}"