This is a courtesy helper function, which in some cases may not work as expected!
(name string, opts ...OptionFunc)
| 684 | |
| 685 | // This is a courtesy helper function, which in some cases may not work as expected! |
| 686 | func (s *SystemVMService) GetSystemVmByName(name string, opts ...OptionFunc) (*SystemVm, int, error) { |
| 687 | id, count, err := s.GetSystemVmID(name, opts...) |
| 688 | if err != nil { |
| 689 | return nil, count, err |
| 690 | } |
| 691 | |
| 692 | r, count, err := s.GetSystemVmByID(id, opts...) |
| 693 | if err != nil { |
| 694 | return nil, count, err |
| 695 | } |
| 696 | return r, count, nil |
| 697 | } |
| 698 | |
| 699 | // This is a courtesy helper function, which in some cases may not work as expected! |
| 700 | func (s *SystemVMService) GetSystemVmByID(id string, opts ...OptionFunc) (*SystemVm, int, error) { |
nothing calls this directly
no test coverage detected