From 3d59f29eea31c5d53a0505aad08d03901f03a3c4 Mon Sep 17 00:00:00 2001 From: pagezz Date: Wed, 10 Apr 2019 18:01:20 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E4=BC=98=E5=8C=96gcloud.apigw?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E6=98=AF=E5=90=A6=E5=8A=A0=E8=BD=BDbkoauth?= =?UTF-8?q?=E7=9A=84=E9=80=BB=E8=BE=91=20#64=20(#67)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gcloud/apigw/decorators.py | 2 +- gcloud/apigw/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcloud/apigw/decorators.py b/gcloud/apigw/decorators.py index 65262774db..b5ac3e6ed8 100644 --- a/gcloud/apigw/decorators.py +++ b/gcloud/apigw/decorators.py @@ -27,7 +27,7 @@ from gcloud.tasktmpl3.models import TaskTemplate from gcloud.conf import settings -if not sys.argv[1:2] == ['test'] and settings.RUN_VER == 'clouds': +if not sys.argv[1:2] == ['test'] and settings.RUN_VER != 'open': try: from bkoauth.decorators import apigw_required except ImportError: diff --git a/gcloud/apigw/views.py b/gcloud/apigw/views.py index 387b767af6..18b6d7efc4 100644 --- a/gcloud/apigw/views.py +++ b/gcloud/apigw/views.py @@ -35,7 +35,7 @@ from gcloud.tasktmpl3.models import TaskTemplate from gcloud.commons.template.models import CommonTemplate -if not sys.argv[1:2] == ['test'] and settings.RUN_VER == 'clouds': +if not sys.argv[1:2] == ['test'] and settings.RUN_VER != 'open': try: from bkoauth.decorators import apigw_required except ImportError: