lib/cloudstack-cli/commands/template.rb in cloudstack-cli-1.6.3 vs lib/cloudstack-cli/commands/template.rb in cloudstack-cli-1.6.4
- old
+ new
@@ -24,10 +24,10 @@
else
table = [%w(Name Created Zone Featured Public Format)]
templates.each do |template|
table << [
template['name'],
- Time.parse(template['created']).strftime("%F"),
+ (Time.parse(template['created']).strftime("%F") rescue "-"),
template['zonename'],
template['isfeatured'],
template['ispublic'],
template['format']
]