def templates
      data = http_action_get "nodes/#{@node}/storage/local/content"
      template_list = {}
      data.each do |ve|
        name = ve['volid'].gsub(%r{local:vztmpl\/(.*).tar.gz}, '\1')
        template_list[name] = ve
      end
      template_list
    end
def templates
      data = http_action_get "nodes/#{@node}/storage/local/content"
      template_list = {}
      data.each do |ve|
        name = ve['volid'].gsub(%r{local:vztmpl\/(.*).tar.gz}, '\1')
        template_list[name] = ve
      end
      template_list
    end
Get template list

 :call-seq:
   templates -> Hash

 Return a Hash of all templates

 Example:

   templates

 Example return:

   {
     'ubuntu-10.04-standard_10.04-4_i386' => {
         'format' => 'tgz',
         'content' => 'vztmpl',
         'volid' => 'local:vztmpl/ubuntu-10.04-standard_10.04-4_i386.tar.gz',
         'size' => 142126884
     },
     'ubuntu-12.04-standard_12.04-1_i386' => {
         'format' => 'tgz',
         'content' => 'vztmpl',
         'volid' => 'local:vztmpl/ubuntu-12.04-standard_12.04-1_i386.tar.gz',
          'size' => 130040792
     }
  }