Skip to content

Instantly share code, notes, and snippets.

@cjs226span
Created August 28, 2011 03:23
Show Gist options
  • Save cjs226span/1176198 to your computer and use it in GitHub Desktop.
Save cjs226span/1176198 to your computer and use it in GitHub Desktop.
knife ec2 server create error: Exception: NoMethodError: undefined method `empty?' for true:TrueClass
/Library/Ruby/Gems/1.8/gems/knife-ec2-0.5.8/lib/chef/knife/ec2_base.rb:74:in `msg_pair': undefined method `empty?' for true:TrueClass (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/knife-ec2-0.5.8/lib/chef/knife/ec2_server_create.rb:233:in `run'
from /Library/Ruby/Gems/1.8/gems/chef-0.10.4/lib/chef/knife.rb:391:in `run_with_pretty_exceptions'
from /Library/Ruby/Gems/1.8/gems/chef-0.10.4/lib/chef/knife.rb:166:in `run'
from /Library/Ruby/Gems/1.8/gems/chef-0.10.4/lib/chef/application/knife.rb:128:in `run'
from /Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/knife:25
from /usr/bin/knife:19:in `load'
from /usr/bin/knife:19
@powdahound
Copy link

Did you happen to figure out what caused this?

@cjs226span
Copy link
Author

cjs226span commented Aug 29, 2011 via email

@powdahound
Copy link

OK - I just fixed it by editing ec2_base.rb temporarily. It looks like the msg_pair() function just dies if the value == true. Not very robust. :)

@cjs226span
Copy link
Author

Where were you yesterday?!?! :-) Thanks!

@powdahound
Copy link

Haha - hadn't ever seen this error until today.

@schisamo
Copy link

Guys thanks for catching this...ticket opened:
http://tickets.opscode.com/browse/KNIFE_EC2-34

Will have an updated gem pushed shortly.

@powdahound
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment