Skip to content

Commit

Permalink
update based on feedback from foodcritic:
Browse files Browse the repository at this point in the history
  * Use strings in preference to symbols to access node attributes
  • Loading branch information
nathenharvey committed Feb 23, 2012
1 parent 2fcf1a7 commit ed80cbc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion recipes/client.rb
Expand Up @@ -18,7 +18,7 @@

require_recipe "percona-install"

case node[:platform]
case node["platform"]
when "redhat","centos","fedora","suse"
package "Percona-Server-client-55"
package "Percona-Server-devel-55"
Expand Down
4 changes: 2 additions & 2 deletions recipes/default.rb
Expand Up @@ -16,9 +16,9 @@
# limitations under the License.
#

case node[:platform]
case node["platform"]
when "redhat","centos","fedora","suse"
arch = node[:kernel][:machine]
arch = node["kernel"]["machine"]
arch = "i386" unless arch == "x86_64"

rpm_file = "percona-release-0.0-1.#{arch}.rpm"
Expand Down
2 changes: 1 addition & 1 deletion recipes/server.rb
Expand Up @@ -18,7 +18,7 @@

require_recipe "percona-install"

case node[:platform]
case node["platform"]
when "redhat","centos","fedora","suse"
execute "remove conflicting mysql-libs" do
command "rpm -e --nodeps mysql-libs "
Expand Down

0 comments on commit ed80cbc

Please sign in to comment.