Sha256: 03543102cab5176ad98fbf1de7eea7b5e14a4680098bf23c0d6be0b55115fbb9

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

module AzureComputeResourceHelper
  def regions_list(azurerm_cr, f)
    begin
      regions = azurerm_cr.regions || []
    rescue StandardError
      #do nothing
      regions = []
    rescue Exception => ex
      return information_box("Regions could not be loaded due to exception: #{ex}")
    end
    selectable_f(f, :url, regions, {}, {:label => _('Azure Region'), :disabled => regions.empty?, :required => true, :help_inline_permanent => load_button_f(f, regions.present?, _("Load Regions")) })
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_azure_rm-2.1.2 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.1.1 app/helpers/azure_compute_resource_helper.rb
foreman_azure_rm-2.1.0 app/helpers/azure_compute_resource_helper.rb