[pve-devel] applied: [PATCH manager 6/6] ui: USB selector: use new API endpoint

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Dec 2 11:51:22 CET 2020


so that we can sunset the usbscan from pve-storage's scan API, which
was never fitting there anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 www/manager6/form/USBSelector.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/manager6/form/USBSelector.js b/www/manager6/form/USBSelector.js
index 41653cfc..b53880f6 100644
--- a/www/manager6/form/USBSelector.js
+++ b/www/manager6/form/USBSelector.js
@@ -39,8 +39,8 @@ Ext.define('PVE.form.USBSelector', {
 	var store = new Ext.data.Store({
 	    model: 'pve-usb-' + me.type,
 	    proxy: {
-                type: 'proxmox',
-                url: "/api2/json/nodes/" + nodename + "/scan/usb"
+		type: 'proxmox',
+		url: `/api2/json/nodes/${nodename}/hardware/usb`,
 	    },
 	    filters: [
 		function (item) {
-- 
2.20.1






More information about the pve-devel mailing list