lib/build-cloud/routetable.rb in build-cloud-0.0.1 vs lib/build-cloud/routetable.rb in build-cloud-0.0.3

- old
+ new

@@ -16,11 +16,11 @@ unless route_table_fog raise "Couldn't get a RouteTable fog object for #{name} - is it created?" end - route_table_fog.route_table_id + route_table_fog.id end def initialize ( fog_interfaces, log, options = {} ) @@ -70,9 +70,12 @@ # doesn't support associations. rt = @compute.route_tables.new ( options ) rt.save @log.debug(rt.inspect) + + ### sometimes tag creation will fail unless we wait until the API catches up: + wait_until_ready @compute.create_tags( rt.id, options[:tags] ) options[:subnet_ids].each do |s| @compute.associate_route_table( rt.id, s )