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:
parent
4b298db778
commit
d1f37ff58e
@ -138,6 +138,8 @@ class MicroVM
|
||||
get_pid < 0
|
||||
end
|
||||
|
||||
# rubocop:disable Lint/RedundantCopDisableDirective
|
||||
# rubocop:disable Lint/SuppressedException
|
||||
def wait_cgroup(path)
|
||||
t_start = Time.now
|
||||
timeout = @one.fcrc[:cgroup_delete_timeout]
|
||||
@ -147,6 +149,8 @@ class MicroVM
|
||||
File.read(path).empty?
|
||||
rescue Errno::ENOENT
|
||||
end
|
||||
# rubocop:enable Lint/SuppressedException
|
||||
# rubocop:enable Lint/RedundantCopDisableDirective
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# VNC
|
||||
|
Loading…
x
Reference in New Issue
Block a user