Revision 30105266
Added by Daniel Lobato Garcia over 8 years ago
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
Refs #11693 - APIv1 returns message when attempting deletion of Smart class parameter