fog / fog-rackspace

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

Fog::Mock.reset raises NameError: uninitialized constant Fog::Rackspace::Storage #34

Open smathy opened 4 years ago

smathy commented 4 years ago

This is basically the same problem as in fog/fog-openstack#59 (which I think should be closed, from fog/fog-openstack#65) ie. that in lib/fog/rackspace.rb you using/expecting Fog::Rackspace::Storage but in lib/fog/rackspace/storage.rb you have defined it the other way around: Fog::Storage::Rackspace.

My gut feel would be to correct the definition to match the filesystem, but that's not what they did in fog/fog-openstack#65 - so I suspect there's some other pieces of the "fog" world that expect the Fog::Storage::Rackspace hierarchy.

Happy to basically reproduce what was done in fog-openstack in a PR, just would like someone to say "Yep, do that" before I proceed.

smathy commented 4 years ago

Ok, I ended up quite happy with my workaround, so there's a PR :)