M #: Add check to DH monitor script

This commit is contained in:
Ruben S. Montero authored and GitHub committed 2020-05-28 17:10:12 +02:00
commit 924d5d9018
1 file changed
+6 -2
+6 -2
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'],