This is a courtesy helper function, which in some cases may not work as expected!
(name string, opts ...OptionFunc)
| 584 | |
| 585 | // This is a courtesy helper function, which in some cases may not work as expected! |
| 586 | func (s *VMGroupService) GetInstanceGroupByName(name string, opts ...OptionFunc) (*InstanceGroup, int, error) { |
| 587 | id, count, err := s.GetInstanceGroupID(name, opts...) |
| 588 | if err != nil { |
| 589 | return nil, count, err |
| 590 | } |
| 591 | |
| 592 | r, count, err := s.GetInstanceGroupByID(id, opts...) |
| 593 | if err != nil { |
| 594 | return nil, count, err |
| 595 | } |
| 596 | return r, count, nil |
| 597 | } |
| 598 | |
| 599 | // This is a courtesy helper function, which in some cases may not work as expected! |
| 600 | func (s *VMGroupService) GetInstanceGroupByID(id string, opts ...OptionFunc) (*InstanceGroup, int, error) { |
nothing calls this directly
no test coverage detected