Skip to content

Commit

Permalink
changed PROXMOX_TOKEN to PROXMOX_USERNAME in main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
3deep5me committed Jan 8, 2024
1 parent dce043c commit 8e5066f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ func initFlagsAndEnv(fs *pflag.FlagSet) {
klog.InitFlags(nil)

ProxmoxURL = env.GetString("PROXMOX_URL", "")
ProxmoxTokenID = env.GetString("PROXMOX_TOKEN", "")
ProxmoxSecret = env.GetString("PROXMOX_SECRET", "")
ProxmoxTokenID = env.GetString("PROXMOX_USERNAME", "")
ProxmoxSecret = env.GetString("PROXMOX_TOKEN", "")

fs.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.")
fs.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
Expand All @@ -227,10 +227,10 @@ func validate() error {
return errors.New("required variable `PROXMOX_URL` is not set")
}
if ProxmoxTokenID == "" {
return errors.New("required variable `PROXMOX_TOKEN` is not set")
return errors.New("required variable `PROXMOX_USERNAME` is not set")
}
if ProxmoxSecret == "" {
return errors.New("required variable `PROXMOX_SECRET` is not set")
return errors.New("required variable `PROXMOX_TOKEN` is not set")
}
return nil
}

0 comments on commit 8e5066f

Please sign in to comment.