Merge "Fix timeout in EC2 CloudController.create_image()"

This commit is contained in:
Jenkins
2012-04-28 11:54:50 +00:00
committed by Gerrit Code Review

View File

@@ -1601,7 +1601,7 @@ class CloudController(object):
# NOTE(yamahata): timeout and error. 1 hour for now for safety.
# Is it too short/long?
# Or is there any better way?
timeout = 1 * 60 * 60 * 60
timeout = 1 * 60 * 60
if time.time() > start_time + timeout:
raise exception.EC2APIError(
_('Couldn\'t stop instance with in %d sec') % timeout)