From 314652a499121805375647d35b3492a3393d0a69 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 9 Dec 2020 12:02:55 +0100 Subject: [PATCH] tape: set protected flag for configuration change api methods --- src/api2/config/changer.rs | 3 +++ src/api2/config/drive.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/api2/config/changer.rs b/src/api2/config/changer.rs index f97b6d05..ed4dd788 100644 --- a/src/api2/config/changer.rs +++ b/src/api2/config/changer.rs @@ -20,6 +20,7 @@ use crate::{ }; #[api( + protected: true, input: { properties: { name: { @@ -139,6 +140,7 @@ pub fn list_changers( } #[api( + protected: true, input: { properties: { name: { @@ -188,6 +190,7 @@ pub fn update_changer( } #[api( + protected: true, input: { properties: { name: { diff --git a/src/api2/config/drive.rs b/src/api2/config/drive.rs index eb7eeb71..d5e3bcd8 100644 --- a/src/api2/config/drive.rs +++ b/src/api2/config/drive.rs @@ -22,6 +22,7 @@ use crate::{ }; #[api( + protected: true, input: { properties: { name: { @@ -134,6 +135,7 @@ pub fn list_drives( } #[api( + protected: true, input: { properties: { name: { @@ -193,6 +195,7 @@ pub fn update_drive( } #[api( + protected: true, input: { properties: { name: {