Skip to content
Snippets Groups Projects
Commit 8f522cd8 authored by Claudio Pisa's avatar Claudio Pisa
Browse files

PEP8 after tox

parent 2b1156e4
No related branches found
No related tags found
No related merge requests found
......@@ -15,10 +15,10 @@
import datetime
import logging
from django.utils.translation import ugettext_lazy as _
from django.views.decorators.debug import sensitive_variables
from django.conf import settings
from django.forms import widgets
from django.utils.translation import ugettext_lazy as _
from django.views.decorators.debug import sensitive_variables
from horizon import exceptions
from horizon import forms
......@@ -52,9 +52,9 @@ class CreateApplicationCredentialForm(forms.SelfHandlingForm):
unrestricted = forms.BooleanField(label=_("Unrestricted (dangerous)"),
required=False)
kubernetes_namespace = forms.CharField(max_length=255,
label=_("Kubernetes Namespace"),
initial="default",
required=False)
label=_("Kubernetes Namespace"),
initial="default",
required=False)
def __init__(self, request, *args, **kwargs):
self.next_view = kwargs.pop('next_view', None)
......@@ -67,7 +67,6 @@ class CreateApplicationCredentialForm(forms.SelfHandlingForm):
if not settings.KUBECONFIG_ENABLED:
self.fields['kubernetes_namespace'].widget = widgets.HiddenInput()
# We have to protect the entire "data" dict because it contains the
# secret string.
@sensitive_variables('data')
......
......@@ -140,7 +140,7 @@ def _get_context(request):
application_credential_secret=app_cred['secret'],
kubernetes_namespace=app_cred['kubernetes_namespace'],
kubernetes_url=settings.KUBECONFIG_KUBERNETES_URL,
kubernetes_certificate_authority_data=\
kubernetes_certificate_authority_data=
settings.KUBECONFIG_CERTIFICATE_AUTHORITY_DATA)
return context
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment