module MiqAeToolsHelper
  def git_import_button_enabled?
    MiqRegion.my_region.role_active?("git_owner")
  end

  def git_import_submit_help
    unless MiqRegion.my_region.role_active?("git_owner")
      content_tag(
        :i,
        "",
        :class => ["fa", "fa-lg", "fa-question-circle"],
        :title => _("Please enable the git owner role in order to import git repositories")
      )
    end
  end
end

module MiqAeToolsHelper
  def git_import_button_enabled?
    MiqRegion.my_region.role_active?("git_owner")
  end

  def git_import_submit_help
    unless git_import_button_enabled?
      content_tag(
        :i,
        "",
        :class => ["fa", "fa-lg", "fa-question-circle"],
        :title => _("Please enable the git owner role in order to import git repositories")
      )
    end
  end
end

Use existing method to query git appliance
Refactor: Use existing method to query git appliance
