mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 16:27:46 +00:00
Fix access account cli
This commit is contained in:
@@ -60,7 +60,9 @@ export const PamAccessAccountModal = ({ isOpen, onOpenChange, account }: Props)
|
|||||||
|
|
||||||
const command = useMemo(
|
const command = useMemo(
|
||||||
() =>
|
() =>
|
||||||
account && account.resource.resourceType === PamResourceType.Postgres
|
account &&
|
||||||
|
(account.resource.resourceType === PamResourceType.Postgres ||
|
||||||
|
account.resource.resourceType == PamResourceType.MySQL)
|
||||||
? `infisical pam db access-account ${account.id} --duration ${cliDuration}`
|
? `infisical pam db access-account ${account.id} --duration ${cliDuration}`
|
||||||
: "",
|
: "",
|
||||||
[account, cliDuration]
|
[account, cliDuration]
|
||||||
|
|||||||
Reference in New Issue
Block a user