Skip to content

Commit

Permalink
Be optimistic about uname query.
Browse files Browse the repository at this point in the history
  • Loading branch information
matschaffer committed Dec 9, 2011
1 parent 794f7e0 commit 4bca625
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/chef/knife/prepare.rb
Expand Up @@ -32,13 +32,8 @@ def generate_node_config
end

def operating_system
@operating_system ||= begin
run_command('uname -s').stdout.strip
rescue
""
end
@operating_system ||= run_command('uname -s').stdout.strip
end

end
end
end

0 comments on commit 4bca625

Please sign in to comment.