chef 0.9.0.a3 → 0.9.0.a4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of chef might be problematic. Click here for more details.
- data/lib/chef/mixin/language.rb +6 -6
- data/lib/chef/version.rb +1 -1
- metadata +2 -2
data/lib/chef/mixin/language.rb
CHANGED
@@ -42,11 +42,11 @@ class Chef
|
|
42
42
|
platform_hash.delete(key)
|
43
43
|
end
|
44
44
|
end
|
45
|
-
if platform_hash.has_key?(
|
46
|
-
if platform_hash[
|
47
|
-
result = platform_hash[
|
48
|
-
elsif platform_hash[
|
49
|
-
result = platform_hash[
|
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 ==
|
75
|
+
has_platform = true if platform == node[:platform]
|
76
76
|
end
|
77
77
|
|
78
78
|
has_platform
|
data/lib/chef/version.rb
CHANGED