Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Apr 21, 2020
1 parent 6de8223 commit 2398a50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IM/connectors/EC2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ def cancel_spot_requests(self, conn, vm):
self.log_info("Spot instance request " + str(sir.id) + " deleted")
break

def delete_networks(self, conn, vm, timeout=120):
def delete_networks(self, conn, vm, timeout=180):
"""
Delete the created networks
"""
Expand All @@ -1331,7 +1331,7 @@ def delete_networks(self, conn, vm, timeout=120):
time.sleep(5)

if not deleted:
self.log_error("Timeout (%s) removing the volume %s" % (timeout, subnet.id))
self.log_error("Timeout (%s) deleting the subnet %s" % (timeout, subnet.id))

vpc_id = None
for vpc in conn.get_all_vpcs(filters={"tag:IM-INFRA-ID": vm.inf.id}):
Expand Down

0 comments on commit 2398a50

Please sign in to comment.