From 93526f4343cb2df9422681fb3c9a75e6046fcaf1 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Thu, 24 Oct 2024 10:10:54 +0200 Subject: [PATCH] fix args passing --- rust/krb5-provision-keytab/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rust/krb5-provision-keytab/src/lib.rs b/rust/krb5-provision-keytab/src/lib.rs index f7b8439b..63a5a0ba 100644 --- a/rust/krb5-provision-keytab/src/lib.rs +++ b/rust/krb5-provision-keytab/src/lib.rs @@ -75,10 +75,7 @@ pub async fn provision_keytab( ) -> Result { let req_str = serde_json::to_vec(&req).context(SerializeRequestSnafu)?; - let args = vec![format!( - "--kubernetes-cluster-domain {kubernetes_cluster_domain}", - kubernetes_cluster_domain = cluster_info.cluster_domain - )]; + let args = vec!["--kubernetes-cluster-domain", &cluster_info.cluster_domain]; let mut child = Command::new("stackable-krb5-provision-keytab") .args(args) .kill_on_drop(true)