Project

General

Profile

« Previous | Next » 

Revision 30105266

Added by Daniel Lobato Garcia over 8 years ago

Refs #11693 - APIv1 returns message when attempting deletion of Smart class parameter

View differences:

app/controllers/api/v1/lookup_keys_controller.rb
def destroy
if @lookup_key.type == "PuppetclassLookupKey"
render_error 'unprocessable_entity', :status => :unprocessable_entity
render_message 'Smart class parameters cannot be destroyed',
:status => :unprocessable_entity
else
process_response @lookup_key.destroy
end

Also available in: Unified diff