lib/fog/azurerm/models/storage/storage_accounts.rb in fog-azure-rm-0.0.4 vs lib/fog/azurerm/models/storage/storage_accounts.rb in fog-azure-rm-0.0.5

- old
+ new

@@ -16,15 +16,10 @@ hash_of_storage_accounts = service.list_storage_account_for_rg(resource_group) else hash_of_storage_accounts = service.list_storage_accounts end hash_of_storage_accounts.each do |account| - hash = {} - hash['name'] = account['name'] - hash['location'] = account['location'] - hash['resource_group'] = account['id'].split('/')[4] - hash['account_type'] = account['properties']['accountType'] - accounts << hash + accounts << Fog::Storage::AzureRM::StorageAccount.parse(account) end load(accounts) end def get(identity)