[pbs-devel] [PATCH proxmox-backup 06/15] api2/tape/drive: change methods of some api calls from put to get
Dominik Csapak
d.csapak at proxmox.com
Wed Jan 27 11:33:52 CET 2021
makes more sense to have retrieving api calls as get instead of put
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/api2/tape/drive.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/api2/tape/drive.rs b/src/api2/tape/drive.rs
index 492d66a6..009ed245 100644
--- a/src/api2/tape/drive.rs
+++ b/src/api2/tape/drive.rs
@@ -1205,12 +1205,12 @@ pub const SUBDIRS: SubdirMap = &sorted!([
(
"cartridge-memory",
&Router::new()
- .put(&API_METHOD_CARTRIDGE_MEMORY)
+ .get(&API_METHOD_CARTRIDGE_MEMORY)
),
(
"volume-statistics",
&Router::new()
- .put(&API_METHOD_VOLUME_STATISTICS)
+ .get(&API_METHOD_VOLUME_STATISTICS)
),
(
"read-label",
--
2.20.1
More information about the pbs-devel
mailing list