Skip to content

Commit 712b576

Browse files
committed
Merge branch '657-snapshot-id-in-cli-snippet' into 'master'
fix: use --snapshot-id instead of branch in CLI clone command (#657) Closes #657 See merge request postgres-ai/database-lab!1094
2 parents 19a9668 + 8815b95 commit 712b576

File tree

1 file changed

+2
-2
lines changed
  • ui/packages/shared/pages/CreateClone/utils

1 file changed

+2
-2
lines changed

ui/packages/shared/pages/CreateClone/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const shellEscape = (str: string): string => {
77
}
88

99
export const getCliCreateCloneCommand = (values: FormValues, showPassword?: boolean) => {
10-
const { dbUser, dbPassword, branch, protectionDurationMinutes, cloneId } = values
10+
const { dbUser, dbPassword, snapshotId, protectionDurationMinutes, cloneId } = values
1111

1212
const usernameDisplay = dbUser ? shellEscape(dbUser) : `<USERNAME>`
1313

@@ -25,7 +25,7 @@ export const getCliCreateCloneCommand = (values: FormValues, showPassword?: bool
2525
2626
--password ${passwordDisplay} \
2727
28-
${branch ? `--branch ${shellEscape(branch)}` : ``} \
28+
${snapshotId ? `--snapshot-id ${shellEscape(snapshotId)}` : ``} \
2929
3030
${protectedFlag} \
3131

0 commit comments

Comments
 (0)