From 99d3b4928d76ea78085b37d561038a0bc23dccf9 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 25 Jul 2013 16:44:41 -0700 Subject: [PATCH] set the region is_master field Signed-off-by: Yehuda Sadeh --- s3tests/functional/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/s3tests/functional/__init__.py b/s3tests/functional/__init__.py index 745be6c..f4644bb 100644 --- a/s3tests/functional/__init__.py +++ b/s3tests/functional/__init__.py @@ -98,6 +98,11 @@ class TargetConfig: raise RuntimeError( 'host not specified for section {s}'.format(s=section) ) + try: + self.is_master=cfg.getboolean(section, 'is_master') + except ConfigParser.NoOptionError: + pass + try: self.is_secure=cfg.getboolean(section, 'is_secure') except ConfigParser.NoOptionError: