Merge "Add fault-tolerant process of lack of OS section in daisy.conf"
This commit is contained in:
commit
82245fa9d9
@ -61,8 +61,10 @@ BACKENDS_UNINSTALL_ORDER = []
|
||||
|
||||
config = ConfigParser.ConfigParser()
|
||||
config.read(daisy_cmn.daisy_conf_file)
|
||||
OS_INSTALL_TYPE = 'pxe'
|
||||
try:
|
||||
OS_INSTALL_TYPE = config.get("OS", "os_install_type")
|
||||
except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
|
||||
OS_INSTALL_TYPE = 'pxe'
|
||||
|
||||
|
||||
def get_deployment_backends(req, cluster_id, backends_order):
|
||||
|
Loading…
x
Reference in New Issue
Block a user