Skip to content

Commit 7606c36

Browse files
authored
bump version.json file to version_v2.json as well
1 parent 94db182 commit 7606c36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contentctl/actions/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from contentctl.input.director import DirectorOutputDto
88
from contentctl.objects.config import build
9-
from contentctl.output.api_json_output import ApiJsonOutput
9+
from contentctl.output.api_json_output import ApiJsonOutput, JSON_API_VERSION
1010
from contentctl.output.conf_output import ConfOutput
1111
from contentctl.output.conf_writer import ConfWriter
1212

@@ -76,7 +76,7 @@ def execute(self, input_dto: BuildInputDto) -> DirectorOutputDto:
7676
api_json_output.writeDeployments(input_dto.director_output_dto.deployments)
7777

7878
# create version file for sse api
79-
version_file = input_dto.config.getAPIPath() / "version.json"
79+
version_file = input_dto.config.getAPIPath() / f"version_v{JSON_API_VERSION}.json"
8080
utc_time = (
8181
datetime.datetime.now(datetime.timezone.utc)
8282
.replace(microsecond=0, tzinfo=None)

0 commit comments

Comments
 (0)