lib/fog/azurerm/models/storage/storage_accounts.rb in fog-azure-rm-0.2.0 vs lib/fog/azurerm/models/storage/storage_accounts.rb in fog-azure-rm-0.2.1

- old
+ new

@@ -25,14 +25,11 @@ storage_account = service.get_storage_account(resource_group_name, storage_account_name) storage_account_fog = Fog::Storage::AzureRM::StorageAccount.new(service: service) storage_account_fog.merge_attributes(Fog::Storage::AzureRM::StorageAccount.parse(storage_account)) end - def check_name_availability(name) - params = Azure::ARM::Storage::Models::StorageAccountCheckNameAvailabilityParameters.new - params.name = name - params.type = 'Microsoft.Storage/storageAccounts' - service.check_storage_account_name_availability(params) + def check_name_availability(name, type = 'Microsoft.Storage/storageAccounts') + service.check_storage_account_name_availability(name, type) end def check_storage_account_exists(resource_group_name, storage_account_name) service.check_storage_account_exists(resource_group_name, storage_account_name) end