Fix: Failing to get service token

This commit is contained in:
Daniel Hougaard
2024-03-11 09:05:56 +01:00
parent 9cc3e58561
commit 40ccab6576
+2 -1
View File
@@ -59,7 +59,8 @@ var exportCmd = &cobra.Command{
util.HandleError(err, "Unable to parse flag") util.HandleError(err, "Unable to parse flag")
} }
infisicalToken, err := cmd.Flags().GetString("token") infisicalToken, err := util.GetInfisicalServiceToken(cmd)
if err != nil { if err != nil {
util.HandleError(err, "Unable to parse flag") util.HandleError(err, "Unable to parse flag")
} }