[GH-ISSUE #168] config file prompted even for targets that dont require config #36

Closed
opened 2026-02-28 00:40:16 +03:00 by kerem · 3 comments
Owner

Originally created by @thorntonmc on GitHub (Apr 26, 2022).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/168

#164 created the following issue for me.

Part of my workflow involves getting a list of all VMs. This does not normally require a config file, however since GetConfig is always called now, it expects some sort of config to be directed in from stdin (which hangs indefinitely if nothing is directed) .

Is this intended? If not, I can create the PR to resolve this issue -- I just wanted to make sure if this was the intended workflow or not.

Originally created by @thorntonmc on GitHub (Apr 26, 2022). Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/168 #164 created the following issue for me. Part of my workflow involves getting a list of all VMs. This does not normally require a config file, however since `GetConfig` is always called now, it expects some sort of config to be directed in from stdin (which hangs indefinitely if nothing is directed) . Is this intended? If not, I can create the PR to resolve this issue -- I just wanted to make sure if this was the intended workflow or not.
kerem closed this issue 2026-02-28 00:40:16 +03:00
Author
Owner

@Tinyblargon commented on GitHub (Apr 26, 2022):

Thanks for reporting this.

This behavior was not intended when i made the change.
Currently the --file flag and os.stdin are only intended to supply a config when a item gets set/created/updated.

<!-- gh-comment-id:1109203100 --> @Tinyblargon commented on GitHub (Apr 26, 2022): Thanks for reporting this. This behavior was not intended when i made the change. Currently the --file flag and os.stdin are only intended to supply a config when a item gets set/created/updated.
Author
Owner

@thorntonmc commented on GitHub (Apr 26, 2022):

Thanks @Tinyblargon - I'll throw up a PR and @ you on it.

<!-- gh-comment-id:1109208495 --> @thorntonmc commented on GitHub (Apr 26, 2022): Thanks @Tinyblargon - I'll throw up a PR and @ you on it.
Author
Owner

@mleone87 commented on GitHub (Apr 28, 2022):

closing it if it's working as expected now

<!-- gh-comment-id:1111970974 --> @mleone87 commented on GitHub (Apr 28, 2022): closing it if it's working as expected now
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#36
No description provided.