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

M #: Add check to DH monitor script

This commit is contained in:
Ruben S. Montero 2020-05-28 17:10:12 +02:00 committed by GitHub
commit 924d5d9018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,8 +153,12 @@ OS = [
# "is_migrated": false
# }
apps[0..-1].each do |app|
time = app['last_updated'].split('T')[0].split('-')
regt = Time.new(time[0], time[1], time[2]).to_i
regt = ''
if !app['last_updated'].nil?
time = app['last_updated'].split('T')[0].split('-')
regt = Time.new(time[0], time[1], time[2]).to_i
end
data = {
'NAME' => app['name'],