Permalink
Browse files

Fix initialization of AMI

Boolean check was wrong, and Ahn blows up if the 'enabled' key is sent to #enable_ami
  • Loading branch information...
1 parent b15346c commit 1e0e2bf424aa3877db887f3efe088011c59b0476 @bklang bklang committed Oct 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generators/ahn/app/templates/adhearsion.rb
@@ -17,7 +17,7 @@
config.end_call_on_error = values['end_call_on_error'] if values.has_key?('end_call_on_error')
config.enable_asterisk :argument_delimiter => values['argument_delimiter'] || '|'
- config.asterisk.enable_ami values['ami']
+ config.asterisk.enable_ami values['ami'] if values['ami'].delete('enabled')
config.enable_drb if values['drb']

0 comments on commit 1e0e2bf

Please sign in to comment.