lib/cloudstack-cli/commands/template.rb in cloudstack-cli-0.5.8 vs lib/cloudstack-cli/commands/template.rb in cloudstack-cli-0.6.0
- old
+ new
@@ -14,16 +14,17 @@
filter: type,
project_id: project ? project['id'] : nil,
zone_id: zone ? zone['id'] : nil
)
if templates.size < 1
- puts "No templates found"
+ puts "No templates found."
else
table = [["Name", "Zone", "Format"]]
templates.each do |template|
table << [template['name'], template['zonename'], template['format']]
end
print_table(table)
+ say "Total number of templates: #{templates.size}"
end
end
end
\ No newline at end of file