Add a specific tower warnings file in the tower home directory.

Configure the api viewer to emit warnings for 4XX and 5XX status codes
into that file.  Configure it for use on a production system.  Closes AC-685
This commit is contained in:
Matthew Jones
2014-04-04 16:48:56 -04:00
parent f56b716b8f
commit e197bfeb01
3 changed files with 25 additions and 3 deletions

View File

@@ -142,7 +142,7 @@ class JobTemplateCallbackPermission(ModelAccessPermission):
# True to fall through to the next permission class.
if (request.user or request.auth) and request.method.lower() != 'post':
return super(JobTemplateCallbackPermission, self).has_permission(request, view, obj)
# Require method to be POST, host_config_key to be specified and match
# the requested job template, and require the job template to be
# active in order to proceed.