MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / applyIPFallback

Function applyIPFallback

pkg/api/client.go:666–674  ·  view source on GitHub ↗
(vm *VM, originalIP string)

Source from the content-addressed store, hash-verified

664}
665
666func applyIPFallback(vm *VM, originalIP string) {
667 if vm == nil {
668 return
669 }
670
671 if vm.IP == "" && originalIP != "" {
672 vm.IP = originalIP
673 }
674}
675
676// NewClient creates a new Proxmox API client with dependency injection.
677func NewClient(config interfaces.Config, options ...ClientOption) (*Client, error) {

Callers 2

TestApplyIPFallbackFunction · 0.85
RefreshVMDataMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestApplyIPFallbackFunction · 0.68