Browse Source

v7.2.5.0: Update ansible_status with dynamic service name

In the install/routes.py, the 'run_ansible' method call in the 'install' function has been updated to dynamically pass the 'service' name, resulting in a more flexible and adaptable code. Previously, it was hardcoded to run only the 'waf_service', which limited its usage.
pull/384/head
Aidaho 6 months ago
parent
commit
27494d631a
  1. 2
      app/routes/install/routes.py

2
app/routes/install/routes.py

@ -92,7 +92,7 @@ def install_waf(service, server_ip):
except Exception as e:
return f'error: Cannot create inventory: {e}'
try:
ansible_status = service_mod.run_ansible(inv, server_ips, f'waf_service'), 201
ansible_status = service_mod.run_ansible(inv, server_ips, f'waf_{service}'), 201
except Exception as e:
return f'error: Cannot install WAF: {e}'

Loading…
Cancel
Save