Jan Provaznik created DTACLOUD-307:
--------------------------------------
Summary: method "valid_provider?" doesn't work as expected
Key: DTACLOUD-307
URL: https://issues.apache.org/jira/browse/DTACLOUD-307
Project: DeltaCloud
Issue Type: Bug
Environment: tested both on deltacloud-core-1.0.0-8.fc17.noarch and
dc-core from git repo
Reporter: Jan Provaznik
it raises following exception for rhevm or mock drivers:
irb(main):007:0> client.drivers[2].id
=> "rhevm"
irb(main):008:0> client.drivers[2].valid_provider?('')
NameError: undefined local variable or method `providers' for
#<DeltaCloud::API::Base::Driver:0x000000045f9958>
from
/usr/local/share/gems/gems/deltacloud-client-1.0.2/lib/base_object.rb:156:in
`method_missing'
from
/usr/local/share/gems/gems/deltacloud-client-1.0.2/lib/base_object.rb:151:in
`method_missing'
from (irb):8
from
/usr/share/gems/gems/railties-3.0.11/lib/rails/commands/console.rb:44:in `start'
from
/usr/share/gems/gems/railties-3.0.11/lib/rails/commands/console.rb:8:in `start'
from /usr/share/gems/gems/railties-3.0.11/lib/rails/commands.rb:23:in
`<top (required)>'
from ./script/rails:6:in `require'
from ./script/rails:6:in `<main>'
Also this method checks if passed provider is in preconfigured (API_PROVIDER)
list, but dc-core should do real check if passed provider/realm is valid.
This is based on BZ request https://bugzilla.redhat.com/show_bug.cgi?id=773768
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira