fix: config in read_only mode is asked
This commit is contained in:
parent
6946532f8d
commit
358de23cb4
1 changed files with 2 additions and 1 deletions
|
|
@ -46,6 +46,7 @@ from .i18n import _
|
||||||
ENV_PREFIX = "ROUGAILCLI"
|
ENV_PREFIX = "ROUGAILCLI"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def _main(arguments, do_not_print):
|
def _main(arguments, do_not_print):
|
||||||
rougailconfig = get_rougail_config(
|
rougailconfig = get_rougail_config(
|
||||||
backward_compatibility=False, add_extra_options=False
|
backward_compatibility=False, add_extra_options=False
|
||||||
|
|
@ -212,7 +213,7 @@ def _main(arguments, do_not_print):
|
||||||
err_warn["errors"].extend(ret["errors"])
|
err_warn["errors"].extend(ret["errors"])
|
||||||
err_warn["warnings"].extend(ret["warnings"])
|
err_warn["warnings"].extend(ret["warnings"])
|
||||||
# output
|
# output
|
||||||
if config and not rougailconfig["cli.load_config"]:
|
if config and (not rougailconfig["cli.load_config"] or not rougailconfig["cli.read_write"]):
|
||||||
config.property.read_only()
|
config.property.read_only()
|
||||||
output_name = rougailconfig["step.output"]
|
output_name = rougailconfig["step.output"]
|
||||||
path = Path(__file__).parent.parent / ("output_" + output_name) / "__init__.py"
|
path = Path(__file__).parent.parent / ("output_" + output_name) / "__init__.py"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue