chef 0.9.0.a3 → 0.9.0.a4

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.
@@ -42,11 +42,11 @@ class Chef
42
42
  platform_hash.delete(key)
43
43
  end
44
44
  end
45
- if platform_hash.has_key?(@node[:platform])
46
- if platform_hash[@node[:platform]].has_key?(@node[:platform_version])
47
- result = platform_hash[@node[:platform]][@node[:platform_version]]
48
- elsif platform_hash[@node[:platform]].has_key?("default")
49
- result = platform_hash[@node[:platform]]["default"]
45
+ if platform_hash.has_key?(node[:platform])
46
+ if platform_hash[node[:platform]].has_key?(node[:platform_version])
47
+ result = platform_hash[node[:platform]][node[:platform_version]]
48
+ elsif platform_hash[node[:platform]].has_key?("default")
49
+ result = platform_hash[node[:platform]]["default"]
50
50
  end
51
51
  end
52
52
 
@@ -72,7 +72,7 @@ class Chef
72
72
  has_platform = false
73
73
 
74
74
  args.flatten.each do |platform|
75
- has_platform = true if platform == @node[:platform]
75
+ has_platform = true if platform == node[:platform]
76
76
  end
77
77
 
78
78
  has_platform
@@ -16,5 +16,5 @@
16
16
  # limitations under the License.
17
17
 
18
18
  class Chef
19
- VERSION = '0.9.0.a3'
19
+ VERSION = '0.9.0.a4'
20
20
  end
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 9
8
8
  - 0
9
- - a3
10
- version: 0.9.0.a3
9
+ - a4
10
+ version: 0.9.0.a4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Jacob