Permalink
Browse files

Update recipe to use new address helpers.

  • Loading branch information...
1 parent 7726871 commit 55f410e42a65f6f5acfbff025c82c5b796038b67 @VictorLowther VictorLowther committed May 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 chef/cookbooks/mysql/recipes/server.rb
@@ -51,7 +51,7 @@
# For Crowbar, we need to set the address to bind - default to admin node.
addr = node['mysql']['bind_address'] || ""
-newaddr = Chef::Recipe::Barclamp::Inventory.get_network_by_type(node, "admin").address
+newaddr = node.address.addr
if addr != newaddr
node['mysql']['bind_address'] = newaddr
node.save

0 comments on commit 55f410e

Please sign in to comment.