[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, master, updated. 3.0.0-alpha3-257-g1da8e3a
Garrett Holmstrom
gholms at fedoraproject.org
Sun Jun 16 02:31:17 UTC 2013
The following commit has been merged in the master branch:
commit f9d0b90f710cdcb464b83cc8f0bd2ed2eb530f3b
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date: Tue May 7 15:03:00 2013 -0700
Make the number of retries on 500/503 configurable
Fixes TOOLS-302
diff --git a/euca2ools/commands/euca/__init__.py b/euca2ools/commands/euca/__init__.py
index 02233cb..9dadd83 100644
--- a/euca2ools/commands/euca/__init__.py
+++ b/euca2ools/commands/euca/__init__.py
@@ -179,6 +179,18 @@ class Eucalyptus(requestbuilder.service.BaseService):
if self.URL_ENVVAR in config:
self.process_url(config[self.URL_ENVVAR])
+ # Set timeout and retry handlers
+ if self.max_retries is None:
+ config_max_retries = self.config.get_global_option('max-retries')
+ if config_max_retries is not None:
+ self.max_retries = int(config_max_retries)
+ else:
+ self.max_retries = self.MAX_RETRIES
+
+ # SSL cert verification is opt-in
+ self.session_args['verify'] = self.config.get_region_option_bool(
+ 'verify-ssl', default=False)
+
# Ensure everything is okay and finish up
self.validate_config()
if self.auth is not None:
--
managing cloud instances for Eucalyptus
More information about the pkg-eucalyptus-commits
mailing list