fix grammar in log messages
This commit is contained in:
@@ -99,7 +99,7 @@ def install(name):
|
|||||||
logging.info("install configuration file")
|
logging.info("install configuration file")
|
||||||
config_dir = f"/etc/{name}"
|
config_dir = f"/etc/{name}"
|
||||||
if os.path.isdir(config_dir):
|
if os.path.isdir(config_dir):
|
||||||
logging.info(f" => directory {config_dir} exists already")
|
logging.info(f" => directory {config_dir} already exists")
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
logging.info(f" => create directory {config_dir}")
|
logging.info(f" => create directory {config_dir}")
|
||||||
|
|||||||
@@ -378,7 +378,7 @@ class FileManagerScheduler(TaskScheduler):
|
|||||||
if os.path.exists(dst) and not rule.overwrite:
|
if os.path.exists(dst) and not rule.overwrite:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
f"unable to {rule.action} file from '{path} "
|
f"unable to {rule.action} file from '{path} "
|
||||||
f"to '{dst}', destination path exists already")
|
f"to '{dst}', path already exists")
|
||||||
|
|
||||||
dst_dir = os.path.dirname(dst)
|
dst_dir = os.path.dirname(dst)
|
||||||
if not os.path.isdir(dst_dir) and rule.auto_create:
|
if not os.path.isdir(dst_dir) and rule.auto_create:
|
||||||
|
|||||||
Reference in New Issue
Block a user