Permalink
Browse files

Merge pull request #28 from ranjib/foodcritic_fix

[COOK-2953] chef-server cookbook has foodcritic failures
  • Loading branch information...
2 parents 8e8cc9d + 2fb41a8 commit fd46c8897dd977e18ea214ecf9ddf28dbdc34867 @stevendanna stevendanna committed May 17, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 libraries/omnitruck_client.rb
@@ -22,9 +22,9 @@ class OmnitruckClient
attr_reader :platform, :platform_version, :machine_architecture
def initialize(node)
- @platform = node[:platform_family] == "rhel" ? "el" : node[:platform]
- @platform_version = node[:platform_family] == "rhel" ? node[:platform_version].to_i : node[:platform_version]
- @machine_architecture = node[:kernel][:machine]
+ @platform = node['platform_family'] == "rhel" ? "el" : node['platform']
+ @platform_version = node['platform_family'] == "rhel" ? node['platform_version'].to_i : node['platform_version']
+ @machine_architecture = node['kernel']['machine']
end
def package_for_version(version, prerelease=false, nightly=false)

0 comments on commit fd46c88

Please sign in to comment.