mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 15:27:46 +00:00
fix: lowercase workspace for url
This commit is contained in:
@@ -127,10 +127,13 @@ export const WindmillSyncFns = {
|
|||||||
syncSecrets: async (secretSync: TWindmillSyncWithCredentials, secretMap: TSecretMap) => {
|
syncSecrets: async (secretSync: TWindmillSyncWithCredentials, secretMap: TSecretMap) => {
|
||||||
const {
|
const {
|
||||||
connection,
|
connection,
|
||||||
destinationConfig: { workspace, path },
|
destinationConfig: { path },
|
||||||
syncOptions: { disableSecretDeletion }
|
syncOptions: { disableSecretDeletion }
|
||||||
} = secretSync;
|
} = secretSync;
|
||||||
|
|
||||||
|
// url needs to be lowercase
|
||||||
|
const workspace = secretSync.destinationConfig.workspace.toLowerCase();
|
||||||
|
|
||||||
const instanceUrl = await getWindmillInstanceUrl(connection);
|
const instanceUrl = await getWindmillInstanceUrl(connection);
|
||||||
|
|
||||||
const { accessToken } = connection.credentials;
|
const { accessToken } = connection.credentials;
|
||||||
@@ -186,9 +189,12 @@ export const WindmillSyncFns = {
|
|||||||
removeSecrets: async (secretSync: TWindmillSyncWithCredentials, secretMap: TSecretMap) => {
|
removeSecrets: async (secretSync: TWindmillSyncWithCredentials, secretMap: TSecretMap) => {
|
||||||
const {
|
const {
|
||||||
connection,
|
connection,
|
||||||
destinationConfig: { workspace, path }
|
destinationConfig: { path }
|
||||||
} = secretSync;
|
} = secretSync;
|
||||||
|
|
||||||
|
// url needs to be lowercase
|
||||||
|
const workspace = secretSync.destinationConfig.workspace.toLowerCase();
|
||||||
|
|
||||||
const instanceUrl = await getWindmillInstanceUrl(connection);
|
const instanceUrl = await getWindmillInstanceUrl(connection);
|
||||||
|
|
||||||
const { accessToken } = connection.credentials;
|
const { accessToken } = connection.credentials;
|
||||||
@@ -216,9 +222,12 @@ export const WindmillSyncFns = {
|
|||||||
getSecrets: async (secretSync: TWindmillSyncWithCredentials) => {
|
getSecrets: async (secretSync: TWindmillSyncWithCredentials) => {
|
||||||
const {
|
const {
|
||||||
connection,
|
connection,
|
||||||
destinationConfig: { workspace, path }
|
destinationConfig: { path }
|
||||||
} = secretSync;
|
} = secretSync;
|
||||||
|
|
||||||
|
// url needs to be lowercase
|
||||||
|
const workspace = secretSync.destinationConfig.workspace.toLowerCase();
|
||||||
|
|
||||||
const instanceUrl = await getWindmillInstanceUrl(connection);
|
const instanceUrl = await getWindmillInstanceUrl(connection);
|
||||||
|
|
||||||
const { accessToken } = connection.credentials;
|
const { accessToken } = connection.credentials;
|
||||||
|
|||||||
Reference in New Issue
Block a user