mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
remove unused lines
This commit is contained in:
parent
c177a6797e
commit
acd96f1382
2 changed files with 1 additions and 3 deletions
|
@ -1033,7 +1033,6 @@ def app_remove(operation_logger, app, purge=False):
|
||||||
remove_script = f"{tmp_workdir_for_app}/scripts/remove"
|
remove_script = f"{tmp_workdir_for_app}/scripts/remove"
|
||||||
|
|
||||||
env_dict = {}
|
env_dict = {}
|
||||||
app_id, app_instance_nb = _parse_app_instance_name(app)
|
|
||||||
env_dict = _make_environment_for_app_script(app, workdir=tmp_workdir_for_app)
|
env_dict = _make_environment_for_app_script(app, workdir=tmp_workdir_for_app)
|
||||||
env_dict["YNH_APP_PURGE"] = str(1 if purge else 0)
|
env_dict["YNH_APP_PURGE"] = str(1 if purge else 0)
|
||||||
|
|
||||||
|
|
|
@ -857,7 +857,6 @@ def domain_dns_push(operation_logger, domain, dry_run=False, force=False, purge=
|
||||||
ignored = ""
|
ignored = ""
|
||||||
|
|
||||||
if action == "create":
|
if action == "create":
|
||||||
old_content = record.get("old_content", "(None)")[:30]
|
|
||||||
new_content = record.get("content", "(None)")[:30]
|
new_content = record.get("content", "(None)")[:30]
|
||||||
return f"{name:>20} [{t:^5}] {new_content:^30} {ignored}"
|
return f"{name:>20} [{t:^5}] {new_content:^30} {ignored}"
|
||||||
elif action == "update":
|
elif action == "update":
|
||||||
|
@ -867,7 +866,7 @@ def domain_dns_push(operation_logger, domain, dry_run=False, force=False, purge=
|
||||||
f"{name:>20} [{t:^5}] {old_content:^30} -> {new_content:^30} {ignored}"
|
f"{name:>20} [{t:^5}] {old_content:^30} -> {new_content:^30} {ignored}"
|
||||||
)
|
)
|
||||||
elif action == "unchanged":
|
elif action == "unchanged":
|
||||||
old_content = new_content = record.get("content", "(None)")[:30]
|
old_content = record.get("content", "(None)")[:30]
|
||||||
return f"{name:>20} [{t:^5}] {old_content:^30}"
|
return f"{name:>20} [{t:^5}] {old_content:^30}"
|
||||||
else:
|
else:
|
||||||
old_content = record.get("content", "(None)")[:30]
|
old_content = record.get("content", "(None)")[:30]
|
||||||
|
|
Loading…
Add table
Reference in a new issue