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:
parent
2fbfdce12c
commit
883f912969
@ -9,6 +9,7 @@ import shlex
|
|||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
# Django
|
# Django
|
||||||
|
from django.conf import settings
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
from django.utils.translation import ugettext_lazy as _
|
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']
|
CLOUD_INVENTORY_SOURCES = ['ec2', 'rax', 'vmware', 'gce', 'azure', 'openstack', 'custom']
|
||||||
|
|
||||||
VERBOSITY_CHOICES = [
|
VERBOSITY_CHOICES = getattr(settings, 'VERBOSITY_CHOICES', [
|
||||||
(0, '0 (Normal)'),
|
(0, '0 (Normal)'),
|
||||||
(1, '1 (Verbose)'),
|
(1, '1 (Verbose)'),
|
||||||
(2, '2 (More Verbose)'),
|
(2, '2 (More Verbose)'),
|
||||||
(3, '3 (Debug)'),
|
(3, '3 (Debug)'),
|
||||||
(4, '4 (Connection Debug)'),
|
(4, '4 (Connection Debug)'),
|
||||||
(5, '5 (WinRM Debug)'),
|
(5, '5 (WinRM Debug)'),
|
||||||
]
|
])
|
||||||
|
|
||||||
|
|
||||||
class VarsDictProperty(object):
|
class VarsDictProperty(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user