Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Don't fail when Fog responds with non-error result #510
When calling 'delete_with_multiple_objects', when there are no errors, Fog can respond with an non-empty DeleteResult array. Select only error results before deciding whether to fail.
I was getting this with more than 1000 objects.
It looks like this is caused by Fog altering your opts Hash:
data << "<Quiet>true</Quiet>" if options.delete(:quiet)
The second time through, you're re-passing opts, but it's now empty.
I'll open a pull request with Fog.
Maybe, in the meantime as a fix, you could move the definition of opts into the loop.