fog / fog-azure-rm

Fog for Azure Resource Manager
MIT License
35 stars 83 forks source link

TypeError: exception class/object expected #389

Open filipeperdigaosousa opened 6 years ago

filipeperdigaosousa commented 6 years ago

I'm trying to use it with asset_sync gem but I cannot upload any files.

When the it is listing the existing blobs it is raising an error "TypeError: exception class/object expected" at this point, https://github.com/fog/fog-azure-rm/blob/42ca817a35f6a64603ca0a7e27feaf4ad4605f5a/lib/fog/azurerm/requests/storage/list_blobs.rb#L24.

Should you check if "temp" is instance of Azure::Storage::Common::Service::EnumerationResults instead of Azure::Service::EnumerationResults?

I tried with this change and the code works fine

aheumaier commented 6 years ago

@filipeperdigaosousa Sounds sane for me . Would you provide a PR ? @bilal-naeem-confiz comments?

bilal-naeem-confiz commented 6 years ago

@filipeperdigaosousa @aheumaier That seems correct to me.

@filipeperdigaosousa can you generate a PR for this? I'll test it out and merge it