knife-cloudstack-fog 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,10 +56,10 @@ class Chef
56
56
  temp = templates
57
57
 
58
58
  if templateid = options[:templateid]
59
- temp.reject!{|t| t['id'] != templateid.to_i}
59
+ temp.reject!{|t| t['id'] != templateid}
60
60
  end
61
61
  if zoneid = options[:zoneid]
62
- temp.reject!{|t| t['zoneid'] != zoneid.to_i}
62
+ temp.reject!{|t| t['zoneid'] != zoneid}
63
63
  end
64
64
  if zone = options[:zone]
65
65
  temp.reject!{|t| t['zonename'] != zone}
@@ -108,6 +108,7 @@ class Chef
108
108
 
109
109
  settings = connection.list_templates('templatefilter' => filter)
110
110
  if response = settings['listtemplatesresponse']
111
+ Chef::Log.debug("Response: #{response}")
111
112
  if templates = response['template']
112
113
  filters = {}
113
114
  filters[:hypervisor] = hypervisor unless hypervisor == 'all'
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Cloudstack
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-cloudstack-fog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-01-29 00:00:00.000000000 Z
15
+ date: 2013-01-30 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: fog