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

L #: Add linting workaround (#4784)

This commit is contained in:
Christian González 2020-05-21 11:32:28 +02:00 committed by GitHub
parent 4b298db778
commit d1f37ff58e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,8 @@ class MicroVM
get_pid < 0 get_pid < 0
end end
# rubocop:disable Lint/RedundantCopDisableDirective
# rubocop:disable Lint/SuppressedException
def wait_cgroup(path) def wait_cgroup(path)
t_start = Time.now t_start = Time.now
timeout = @one.fcrc[:cgroup_delete_timeout] timeout = @one.fcrc[:cgroup_delete_timeout]
@ -147,6 +149,8 @@ class MicroVM
File.read(path).empty? File.read(path).empty?
rescue Errno::ENOENT rescue Errno::ENOENT
end end
# rubocop:enable Lint/SuppressedException
# rubocop:enable Lint/RedundantCopDisableDirective
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# VNC # VNC