@@ -25,7 +25,7 @@ const (
2525
2626// VirtualMachines returns all qemus across all proxmox nodes
2727func (s * Service ) VirtualMachines (ctx context.Context ) ([]* api.VirtualMachine , error ) {
28- nodes , err := s .Nodes (ctx )
28+ nodes , err := s .GetNodes (ctx )
2929 if err != nil {
3030 return nil , err
3131 }
@@ -41,7 +41,7 @@ func (s *Service) VirtualMachines(ctx context.Context) ([]*api.VirtualMachine, e
4141}
4242
4343func (s * Service ) VirtualMachine (ctx context.Context , vmid int ) (* VirtualMachine , error ) {
44- nodes , err := s .Nodes (ctx )
44+ nodes , err := s .GetNodes (ctx )
4545 if err != nil {
4646 return nil , err
4747 }
@@ -83,7 +83,7 @@ func (s *Service) CloneVirtualMachine(ctx context.Context, node string, vmid int
8383// VirtualMachineFromUUID attempts to find virtual machine based on SMBIOS UUID. It will ignore any error that prevents
8484// it from inspecting additional virtual machines (e.g. offline node, vm config not accessible, malformed uuids)
8585func (s * Service ) VirtualMachineFromUUID (ctx context.Context , uuid string ) (* VirtualMachine , error ) {
86- nodes , err := s .Nodes (ctx )
86+ nodes , err := s .GetNodes (ctx )
8787 if err != nil {
8888 return nil , err
8989 }
@@ -111,7 +111,7 @@ func (s *Service) VirtualMachineFromUUID(ctx context.Context, uuid string) (*Vir
111111
112112// return true if there is any vm having specified name
113113func (s * Service ) VirtualMachineExistsWithName (ctx context.Context , name string ) (bool , error ) {
114- nodes , err := s .Nodes (ctx )
114+ nodes , err := s .GetNodes (ctx )
115115 if err != nil {
116116 return false , err
117117 }
0 commit comments