• Max Woolf's avatar
    Return 404 when deleting non-existant SSH key · e0e5ee4e
    Max Woolf authored
    Currently when using the UI to delete an SSH key
    via the credentials inventory, the HTTP status
    code returned is always 201 regardless of the
    outcome.
    
    This commits adds a guard clause to render
    a 404 Not Found error when attempting to
    delete a non-existant SSH key.
    e0e5ee4e
credentials_inventory_actions.rb 2.34 KB