set the region is_master field

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
Yehuda Sadeh 2013-07-25 16:44:41 -07:00
parent 1c6b1ba1f6
commit 99d3b4928d

View file

@ -98,6 +98,11 @@ class TargetConfig:
raise RuntimeError( raise RuntimeError(
'host not specified for section {s}'.format(s=section) 'host not specified for section {s}'.format(s=section)
) )
try:
self.is_master=cfg.getboolean(section, 'is_master')
except ConfigParser.NoOptionError:
pass
try: try:
self.is_secure=cfg.getboolean(section, 'is_secure') self.is_secure=cfg.getboolean(section, 'is_secure')
except ConfigParser.NoOptionError: except ConfigParser.NoOptionError: