fog / fog-rackspace

Rackspace provider gem for Fog ecosystem
MIT License
8 stars 36 forks source link

Gem load fix #39

Open duhast opened 2 years ago

duhast commented 2 years ago

Fixes an exception during gem load:

Uncaught exception: wrong constant name CDN v2
    /home/duhast/.rvm/gems/ruby-2.7.6@mpsweb/gems/fog-core-2.3.0/lib/fog/core/provider.rb:48:in `const_defined?'
    /home/duhast/.rvm/gems/ruby-2.7.6@mpsweb/gems/fog-core-2.3.0/lib/fog/core/provider.rb:48:in `service_klass'
    /home/duhast/.rvm/gems/ruby-2.7.6@mpsweb/gems/fog-core-2.3.0/lib/fog/core/provider.rb:37:in `service'
    /home/duhast/.rvm/gems/ruby-2.7.6@mpsweb/gems/fog-rackspace-0.1.6/lib/fog/rackspace.rb:54:in `<module:Rackspace>'
    /home/duhast/.rvm/gems/ruby-2.7.6@mpsweb/gems/fog-rackspace-0.1.6/lib/fog/rackspace.rb:28:in `<module:Fog>'
    /home/duhast/.rvm/gems/ruby-2.7.6@mpsweb/gems/fog-rackspace-0.1.6/lib/fog/rackspace.rb:10:in `<top (required)>'
    /home/duhast/.rvm/gems/ruby-2.7.6@mpsweb/gems/bundler-1.17.3/lib/bundler/runtime.rb:95:in `require'
duhast commented 2 years ago

However, even after the fix, the following warning appears:

[fog][DEPRECATION] Unable to load Fog::Rackspace::Databases [fog][DEPRECATION] Falling back to deprecated constant Fog::Databases::Rackspace. The preferred format of service provider constants has changed from service::provider to provider::service. Please update this service provider to use the preferred format.