]> git.proxmox.com Git - pve-manager.git/commit
hw-address: check if source file changed so cache needs update
authorMaximiliano Sandoval <m.sandoval@proxmox.com>
Mon, 9 Oct 2023 09:35:58 +0000 (11:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 9 Oct 2023 14:36:59 +0000 (16:36 +0200)
commitf6395eb69cc19bdb0ea6000f653609cf0688cc87
tree3eaefe897c40cbe5a581d2a9a69143c2b9d3d712
parentb7588bcdef79d01fefbd805439e063938d2d8456
hw-address: check if source file changed so cache needs update

We cache the hash of this file, it makes sense to first check if the
file changed via `stat` and recompute the hash if needed.

This mirrors similar changes done for PMG [0].

[0]: https://git.proxmox.com/?p=pmg-api.git;a=commit;h=16d2ff9f8e90db64114a66d78672f5a03f5ee990.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
PVE/API2Tools.pm