Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

StorageManagementService#get_storage_account failed if only one storage account exists #130

Closed
zakkie opened this issue Mar 14, 2014 · 1 comment

Comments

@zakkie
Copy link

zakkie commented Mar 14, 2014

.../vendor/bundle/ruby/2.1.0/gems/azure-0.6.1/lib/azure/storage_management/storage_management_service.rb:48:in get_storage_account': undefined method each' for #Azure::StorageManagement::StorageAccount:0x007fd47ab39f60 (NoMethodError)

It seems StorageManagementService#list_storage_accounts should always return an Array, but return a StorageAccount object if only one storage account exists for the subscription.

I think it was caused by /lib/azure/storage_management/serialization.rb#L113

@zakkie
Copy link
Author

zakkie commented Mar 24, 2014

fixed by #134

@zakkie zakkie closed this as completed Mar 24, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant