Update gce cloud calls after api changes
This commit is contained in:
parent
9b22796383
commit
8dc3d4764f
6 changed files with 76 additions and 53 deletions
|
|
@ -81,10 +81,11 @@ func (f *FakeInstanceGroups) GetInstanceGroup(name, zone string) (*compute.Insta
|
|||
}
|
||||
|
||||
// CreateInstanceGroup fakes instance group creation.
|
||||
func (f *FakeInstanceGroups) CreateInstanceGroup(name, zone string) (*compute.InstanceGroup, error) {
|
||||
newGroup := &compute.InstanceGroup{Name: name, SelfLink: name, Zone: zone}
|
||||
f.instanceGroups = append(f.instanceGroups, newGroup)
|
||||
return newGroup, nil
|
||||
func (f *FakeInstanceGroups) CreateInstanceGroup(ig *compute.InstanceGroup, zone string) error {
|
||||
ig.SelfLink = ig.Name
|
||||
ig.Zone = zone
|
||||
f.instanceGroups = append(f.instanceGroups, ig)
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeleteInstanceGroup fakes instance group deletion.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue