summaryrefslogtreecommitdiff
path: root/lib/chef/platform.rb
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-10-07 16:56:23 -0700
committerAdam Jacob <adam@hjksolutions.com>2008-10-07 16:56:23 -0700
commitc59e826199720a2a2ee7b79d19a89a3f78946b49 (patch)
tree8d5148bc090817ee23f4cee8238bde2c56c35122 /lib/chef/platform.rb
parentc26fc376c538437c1da6f4cfe3528b694b5e8cbb (diff)
downloadchef-c59e826199720a2a2ee7b79d19a89a3f78946b49.tar.gz
Use operatingsystemrelease as a last resort
Diffstat (limited to 'lib/chef/platform.rb')
-rw-r--r--lib/chef/platform.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/platform.rb b/lib/chef/platform.rb
index 56d26f6c5d..c7a7be1236 100644
--- a/lib/chef/platform.rb
+++ b/lib/chef/platform.rb
@@ -124,6 +124,8 @@ class Chef
version = node[:macosx_productversion]
elsif node.attribute?("operatingsystemversion")
version = node[:operatingsystemversion]
+ elsif node.attribute?("operatingsystemrelease")
+ version = node[:operatingsystemrelease]
end
raise ArgumentError, "Cannot find a version for #{node}" unless version