refactor ♻️: Refactor legacy and minified proxmoxlib.js patching logic to use handlers #2

Merged
Jose merged 7 commits from dev into main 2026-02-08 08:06:27 +01:00
Showing only changes of commit f51de33275 - Show all commits

View File

@@ -15,9 +15,9 @@
ansible.builtin.systemd_service:
daemon_reexec: true
- name: Ppatch legacy proxmoxlib.js
- name: Patch legacy proxmoxlib.js
block:
- name: Ppatch legacy proxmoxlib.js
- name: Patch legacy proxmoxlib.js

[Lines 18-20] [Score: 3] Consider adding variable names for clarify and easier maintenance. For example: patch_legacy_proxmoxlib, patch_minified_proxmoxlib_min.

[Lines 18-20] [Score: 3] Consider adding variable names for clarify and easier maintenance. For example: `patch_legacy_proxmoxlib`, `patch_minified_proxmoxlib_min`.
ansible.builtin.replace:
path: /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
regexp: "if \\(data.status !== 'Active'\\)"