Skip to content

Commit

Permalink
Fixing add_instance method
Browse files Browse the repository at this point in the history
Adding add_instance back to the model, seems I forgot to port it
from the collection earlier.

Fixes fog#308
  • Loading branch information
Temikus committed Mar 26, 2018
1 parent ee58e2a commit dcab862
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fog/compute/google/models/instance_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def destroy(_async = true)
service.delete_instance_group(name, zone_name)
end

def add_instance instance_id
add_instances [instance_id]
end

def add_instances(instances)
requires :identity, :zone

Expand Down

0 comments on commit dcab862

Please sign in to comment.