Skip to content

Commit 32f03d3

Browse files
fix(secrets): bad error message when missing a secret in v2 backend (#7850)
Co-authored-by: Jon Edvald <edvald@gmail.com>
1 parent 2d70d3e commit 32f03d3

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

core/src/cloud/api/secrets.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

core/src/config/template-contexts/project.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { type VcsInfo } from "../../vcs/vcs.js"
1919
import { styles } from "../../logger/styles.js"
2020
import type { VariablesContext } from "./variables.js"
2121
import { type CloudBackendType, getCloudDistributionName } from "../../cloud/util.js"
22-
import { getSecretsUnavailableInNewBackendMessage } from "../../cloud/api/secrets.js"
2322

2423
// TODO: Mark as deprecated
2524
const secretsSchema = joiStringMap(joi.string().description("The secret's value."))
@@ -346,10 +345,6 @@ export class ProjectConfigContext extends DefaultEnvironmentContext {
346345
return ""
347346
}
348347

349-
if (this._backendType === "v2") {
350-
return getSecretsUnavailableInNewBackendMessage(this._cloudBackendDomain)
351-
}
352-
353348
const distributionName = getCloudDistributionName(this._cloudBackendDomain)
354349

355350
if (!this._loggedIn) {

0 commit comments

Comments
 (0)