Permalink
Browse files

Fixing dynamic compare of datacenter id to our configured --linode-da…

…tacenter - forcing a converstion to integer before the compare in the select
  • Loading branch information...
1 parent 754c1ba commit 5244839432385b1321fd9686c0a32b8c736724cc @ianblenke ianblenke committed Oct 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/chef/knife/linode_server_create.rb
@@ -167,7 +167,7 @@ def run
validate!
- datacenter = connection.data_centers.select { |dc| dc.id == locate_config_value(:linode_datacenter) }.first
+ datacenter = connection.data_centers.select { |dc| dc.id.to_i == locate_config_value(:linode_datacenter).to_i }.first
flavor = connection.flavors.get(locate_config_value(:linode_flavor).to_i)

0 comments on commit 5244839

Please sign in to comment.