fog / fog-azure-rm

Fog for Azure Resource Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: exception class/object expected

filipeperdigaosousa opened this issue · comments

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,

raise temp unless temp.instance_of?(Azure::Service::EnumerationResults)
.

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

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

@filipeperdigaosousa @aheumaier
That seems correct to me.

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