Skip to content

Commit 7e67234

Browse files
committed
feat(cmd/rofl): Unlock account before pushing to OCI repository
1 parent 32db224 commit 7e67234

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/rofl/deploy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ var (
129129
return
130130
}
131131

132+
acc := common.LoadAccount(cliConfig.Global(), npa.AccountName)
133+
132134
ociRepository := ociRepository(deployment)
133135
orcFilename := roflCommon.GetOrcFilename(manifest, roflCommon.DeploymentName)
134136
fmt.Printf("Pushing ROFL app to OCI repository '%s'...\n", ociRepository)
@@ -198,7 +200,6 @@ var (
198200
TermCount: deployTermCount,
199201
})
200202

201-
acc := common.LoadAccount(cliConfig.Global(), npa.AccountName)
202203
var sigTx, meta any
203204
sigTx, meta, err = common.SignParaTimeTransaction(ctx, npa, acc, conn, tx, nil)
204205
cobra.CheckErr(err)
@@ -263,7 +264,6 @@ var (
263264
})},
264265
})
265266

266-
acc := common.LoadAccount(cliConfig.Global(), npa.AccountName)
267267
var sigTx, meta any
268268
sigTx, meta, err = common.SignParaTimeTransaction(ctx, npa, acc, conn, tx, nil)
269269
cobra.CheckErr(err)

0 commit comments

Comments
 (0)