#NEWLINE# @ classmethod #NEWLINE# def delete_vpc_failed( cls , vpc_id ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# LOG . warning ( ( 'VpnGateways: ' + str ( cls . client . describe_vpn_gateways ( Filters = [ { #NEWLINE# #INDENT# 'Name' : 'attachment.vpc-id' , #NEWLINE# 'Values' : [ vpc_id ] , #NEWLINE# #UNINDENT# } ] ) [ 'VpnGateways' ] ) ) ) #NEWLINE# LOG . warning ( ( 'RouteTables: ' + str ( cls . client . describe_route_tables ( Filters = [ { #NEWLINE# #INDENT# 'Name' : 'vpc-id' , #NEWLINE# 'Values' : [ vpc_id ] , #NEWLINE# #UNINDENT# } ] ) [ 'RouteTables' ] ) ) ) #NEWLINE# return True #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# LOG . exception ( 'Error occured during "delete_vpc_failed" hook' ) #NEWLINE# #UNINDENT# return False