mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Let's not redefine the value for the 'service' var ...
This commit is contained in:
parent
8911499bf3
commit
1a2f26dc34
1 changed files with 2 additions and 2 deletions
|
@ -97,8 +97,8 @@ def service_add(name, description=None, log=None, log_type=None, test_status=Non
|
||||||
service["test_status"] = test_status
|
service["test_status"] = test_status
|
||||||
else:
|
else:
|
||||||
# Try to get the description from systemd service
|
# Try to get the description from systemd service
|
||||||
_, service = _get_service_information_from_systemd(name)
|
_, systemd_info = _get_service_information_from_systemd(name)
|
||||||
type_ = service.get("Type") if service is not None else ""
|
type_ = systemd_info.get("Type") if systemd_info is not None else ""
|
||||||
if type_ == "oneshot":
|
if type_ == "oneshot":
|
||||||
logger.warning("/!\\ Packagers! Please provide a --test_status when adding oneshot-type services in Yunohost, such that it has a reliable way to check if the service is running or not.")
|
logger.warning("/!\\ Packagers! Please provide a --test_status when adding oneshot-type services in Yunohost, such that it has a reliable way to check if the service is running or not.")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue