summaryrefslogtreecommitdiffstats
path: root/crates/core/tedge/src/cli/certificate/remove.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/core/tedge/src/cli/certificate/remove.rs')
-rw-r--r--crates/core/tedge/src/cli/certificate/remove.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/crates/core/tedge/src/cli/certificate/remove.rs b/crates/core/tedge/src/cli/certificate/remove.rs
index e46acfbf..8f978972 100644
--- a/crates/core/tedge/src/cli/certificate/remove.rs
+++ b/crates/core/tedge/src/cli/certificate/remove.rs
@@ -1,7 +1,6 @@
use super::error::CertError;
use crate::command::Command;
use tedge_config::*;
-use tedge_users::UserManager;
use tedge_utils::paths::ok_if_not_found;
/// Remove the device certificate
@@ -11,9 +10,6 @@ pub struct RemoveCertCmd {
/// The path of the private key to be removed
pub key_path: FilePath,
-
- /// The UserManager required to change effective user id.
- pub user_manager: UserManager,
}
impl Command for RemoveCertCmd {
@@ -29,7 +25,6 @@ impl Command for RemoveCertCmd {
impl RemoveCertCmd {
fn remove_certificate(&self) -> Result<(), CertError> {
- let _user_guard = self.user_manager.become_user(tedge_users::BROKER_USER)?;
std::fs::remove_file(&self.cert_path).or_else(ok_if_not_found)?;
std::fs::remove_file(&self.key_path).or_else(ok_if_not_found)?;