Skip to content

Commit

Permalink
perf: sync apigw 只发布对应环境的网关接口 TencentBlueKing#7472
Browse files Browse the repository at this point in the history
  • Loading branch information
lTimej committed May 31, 2024
1 parent d1c7c46 commit ef196e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gcloud/apigw/management/commands/sync_saas_apigw.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,19 @@
import os
import traceback

from django.conf import settings
from django.core.management import call_command
from django.core.management.base import BaseCommand

import env


class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument("-s", "--stage", default=["stage", "prod"], nargs="+", help="release stages")

def handle(self, *args, **kwargs):
if not env.IS_PAAS_V3:
print("[bk-sops]current version is not open v3,skip sync_saas_apigw")
return
stage = kwargs.get("stage")
stage = [settings.BK_APIGW_STAGE_NAME]
definition_file_path = os.path.join(__file__.rsplit("/", 1)[0], "data/api-definition.yml")
resources_file_path = os.path.join(__file__.rsplit("/", 1)[0], "data/api-resources.yml")

Expand Down

0 comments on commit ef196e9

Please sign in to comment.