1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Allow verbosity level choices to be specified by settings.

This commit is contained in:
Chris Church 2015-04-15 13:09:03 -04:00
parent 2fbfdce12c
commit 883f912969

View File

@ -9,6 +9,7 @@ import shlex
import yaml
# Django
from django.conf import settings
from django.db import models
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext_lazy as _
@ -58,14 +59,14 @@ PERMISSION_TYPE_CHOICES = [
CLOUD_INVENTORY_SOURCES = ['ec2', 'rax', 'vmware', 'gce', 'azure', 'openstack', 'custom']
VERBOSITY_CHOICES = [
VERBOSITY_CHOICES = getattr(settings, 'VERBOSITY_CHOICES', [
(0, '0 (Normal)'),
(1, '1 (Verbose)'),
(2, '2 (More Verbose)'),
(3, '3 (Debug)'),
(4, '4 (Connection Debug)'),
(5, '5 (WinRM Debug)'),
]
])
class VarsDictProperty(object):