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

Function guestIdentityFromVM

internal/cli/community_scripts.go:520–531  ·  view source on GitHub ↗
(vm *api.VM)

Source from the content-addressed store, hash-verified

518}
519
520func guestIdentityFromVM(vm *api.VM) guestIdentity {
521 if vm == nil {
522 return guestIdentity{}
523 }
524
525 return guestIdentity{
526 id: vm.ID,
527 node: vm.Node,
528 guestType: vm.Type,
529 sourceProfile: vm.SourceProfile,
530 }
531}
532
533func formatGuestOutputs(guests []guestOutput) string {
534 if len(guests) == 0 {

Callers 1

detectCreatedGuestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected