chef-boneyard / knife-rackspace

Chef knife plug-in for Rackspace
https://github.com/chef/knife-rackspace
Apache License 2.0
153 stars 114 forks source link

undefined method label for Fog::Compute::RackspaceV2::Image #119

Closed martinb3 closed 8 years ago

martinb3 commented 9 years ago

Just did a fresh install to test the recent PR submission, and I saw this:

DEBUG: version  (config)
DEBUG: version v2 (cli)
DEBUG: rackspace_api_key censored
DEBUG: rackspace_username 
DEBUG: rackspace_api_username martinb3
DEBUG: rackspace_auth_url 
DEBUG: rackspace_auth_url 
DEBUG: rackspace_auth_url https://identity.api.rackspacecloud.com/v2.0 (using)
DEBUG: rackspace_region IAD
DEBUG: rackspace_region 
DEBUG: rackspace v2
DEBUG: https_proxy <not specified> (config)
DEBUG: http_proxy <not specified> (config)
DEBUG: using proxy <none> (config)
DEBUG: ssl_verify_peer <not specified> (config)
lib/chef/knife/rackspace_server_list.rb:42:in `block in run': undefined method `label' for #<Fog::Compute::RackspaceV2::Image:0x007fbfdcb0e278> (NoMethodError)
    from lib/chef/knife/rackspace_server_list.rb:42:in `collect'
    from lib/chef/knife/rackspace_server_list.rb:42:in `run'
    from lib/ruby/gems/2.1.0/gems/chef-10.34.6/lib/chef/knife.rb:408:in `run_with_pretty_exceptions'
    from /.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/chef-10.34.6/lib/chef/knife.rb:168:in `run'
    from /.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/chef-10.34.6/lib/chef/application/knife.rb:125:in `run'
    from /.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/chef-10.34.6/bin/knife:25:in `<top (required)>'
    from /.rbenv/versions/2.1.5/bin/knife:23:in `load'
    from /.rbenv/versions/2.1.5/bin/knife:23:in `<main>'
    from /.rbenv/versions/2.1.5/bin/ruby_executable_hooks:15:in `eval'
    from /.rbenv/versions/2.1.5/bin/ruby_executable_hooks:15:in `<main>'