mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-09 06:55:45 -06:00
cliconfig: Fix parsing the configuration file
This commit is contained in:
parent
cea22b17d7
commit
64b501cdc0
@ -39,9 +39,12 @@ def _split_list(commastr):
|
|||||||
|
|
||||||
|
|
||||||
def _get_param(name, default):
|
def _get_param(name, default):
|
||||||
if _istest or not name in cfg.sections():
|
if _istest:
|
||||||
|
return default
|
||||||
|
try:
|
||||||
|
return cfg.get("config", name)
|
||||||
|
except ConfigParser.NoOptionError:
|
||||||
return default
|
return default
|
||||||
return cfg.get("config", name)
|
|
||||||
|
|
||||||
|
|
||||||
def _setup_gsettings_path(schemadir):
|
def _setup_gsettings_path(schemadir):
|
||||||
|
Loading…
Reference in New Issue
Block a user