Bug #3922
closedorganization add_domain errors
Description
Error running associating subcommand
```
hammer organization add_domain --id 2 --domain-id 12
NoMethodError (undefined method `[]' for nil:NilClass):
/home/tomckay/code/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:256:in `get_current_ids'
/home/tomckay/code/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:284:in `get_new_ids'
/home/tomckay/code/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:266:in `request_params'
/home/tomckay/code/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:34:in `send_request'
/home/tomckay/code/hammer-cli/lib/hammer_cli/apipie/write_command.rb:10:in `execute'
/home/tomckay/.rvm/gems/ruby-1.9.3-p327@hammer/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
/home/tomckay/code/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run'
/home/tomckay/.rvm/gems/ruby-1.9.3-p327@hammer/gems/clamp-0.6.3/lib/clamp/subcommand/execution.rb:11:in `execute'
/home/tomckay/.rvm/gems/ruby-1.9.3-p327@hammer/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
/home/tomckay/code/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run'
/home/tomckay/.rvm/gems/ruby-1.9.3-p327@hammer/gems/clamp-0.6.3/lib/clamp/subcommand/execution.rb:11:in `execute'
/home/tomckay/.rvm/gems/ruby-1.9.3-p327@hammer/gems/clamp-0.6.3/lib/clamp/command.rb:67:in `run'
/home/tomckay/code/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run'
/home/tomckay/.rvm/gems/ruby-1.9.3-p327@hammer/gems/clamp-0.6.3/lib/clamp/command.rb:125:in `run'
/home/tomckay/code/hammer-cli/bin/hammer:61:in `<top (required)>'
/home/tomckay/.rvm/gems/ruby-1.9.3-p327@hammer/bin/hammer:23:in `load'
/home/tomckay/.rvm/gems/ruby-1.9.3-p327@hammer/bin/hammer:23:in `<main>'
```