Skip to content

Commit

Permalink
improve: 优化gcloud.apigw模块是否加载bkoauth的逻辑 #64 (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
pagezz-canway authored and homholueng committed Apr 10, 2019
1 parent e467475 commit 980fa4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gcloud/apigw/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion gcloud/apigw/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 980fa4e

Please sign in to comment.