Skip to content

Commit

Permalink
[debug] show REST API calls if packer is executed with "-debug" option (
Browse files Browse the repository at this point in the history
#78)

This patch allows to trace all REST API calls if packer is executed with "-debug"
option. Before this patch, there is no way to enable such tracing. It simplifies
analysis of packer-proxmox interaction and identify root cause of breaks.
  • Loading branch information
mizhka authored Apr 15, 2022
1 parent 4619c7f commit 075b733
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builder/proxmox/common/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ func newProxmoxClient(config Config) (*proxmox.Client, error) {
return nil, err
}

*proxmox.Debug = config.PackerDebug

if config.Token != "" {
// configure token auth
log.Print("using token auth")
Expand Down

0 comments on commit 075b733

Please sign in to comment.