app/models/manageiq/providers/cloud_manager/auth_key_pair/operations.rb
# TODO(maufart): make it more generic or move to EMS (validate_resource?)
make it more generic or move to EMS (validate_resource?)
make it more generic or move to EMS ( validate_resource? )
def validate_key_pair(ext_management_system)
      if ext_management_system.nil?
        return {:available => false,
                :message   => _("The Keypair is not connected to an active %{table}") %
                  {:table => ui_lookup(:table => "ext_management_system")}}
      end
      {:available => true, :message => nil}
    end
def validate_key_pair ( ext_management_system ) if ext_management_system . nil? return { :available => false , :message => _ ( "The Keypair is not connected to an active %{table}" ) % { :table => ui_lookup ( :table => "ext_management_system" ) } } end { :available => true , :message => nil } end
TODO(maufart): make it more generic or move to EMS (validate_resource?)
TODO ( maufart ) : make it more generic or move to EMS ( validate_resource? )
ext_management_system
<not_specific>