diff --git a/lib/cuber/commands/info.rb b/lib/cuber/commands/info.rb index 82d31f3..2cbd7c8 100644 --- a/lib/cuber/commands/info.rb +++ b/lib/cuber/commands/info.rb @@ -98,7 +98,7 @@ def print_cron schedule = cron['spec']['schedule'] command = cron['spec']['jobTemplate']['spec']['template']['spec']['containers'][0]['command'].shelljoin last = cron['status']['lastScheduleTime'] - puts "#{name}: #{schedule} #{command} (#{time_ago_in_words last})" + puts "#{name}: #{schedule} #{command} #{'(' + time_ago_in_words(last) + ')' if last}" end end