diff --git a/lib/fog/aws/models/compute/subnet.rb b/lib/fog/aws/models/compute/subnet.rb index 176a141f3..1d124b797 100644 --- a/lib/fog/aws/models/compute/subnet.rb +++ b/lib/fog/aws/models/compute/subnet.rb @@ -14,6 +14,10 @@ module Fog attribute :availability_zone, :aliases => 'availabilityZone' attribute :tag_set, :aliases => 'tagSet' + def ready? + requires :state + state == 'available' + end # Removes an existing subnet # diff --git a/lib/fog/aws/models/compute/vpc.rb b/lib/fog/aws/models/compute/vpc.rb index 80ec246f9..aa484ebab 100644 --- a/lib/fog/aws/models/compute/vpc.rb +++ b/lib/fog/aws/models/compute/vpc.rb @@ -20,6 +20,11 @@ module Fog super end + def ready? + requires :state + state == 'available' + end + # Removes an existing vpc # # vpc.destroy