mirror of
https://github.com/jlengrand/engine.git
synced 2026-03-10 08:11:21 +00:00
Fix clippy error
This commit is contained in:
committed by
Erèbe - Romain Gerard
parent
0c2b14246b
commit
70642a4054
@@ -373,7 +373,7 @@ pub fn check_domain_for(
|
||||
},
|
||||
ProgressLevel::Info,
|
||||
Some(x),
|
||||
execution_id.clone().to_string(),
|
||||
execution_id.to_string(),
|
||||
));
|
||||
|
||||
OperationResult::Retry(err)
|
||||
|
||||
@@ -397,7 +397,7 @@ where
|
||||
P: AsRef<Path>,
|
||||
{
|
||||
// don't create the namespace if already exists and not not return error in this case
|
||||
if !kubectl_exec_is_namespace_present(kubernetes_config.as_ref(), namespace.clone(), envs.clone()) {
|
||||
if !kubectl_exec_is_namespace_present(kubernetes_config.as_ref(), namespace, envs.clone()) {
|
||||
// create namespace
|
||||
let mut _envs = Vec::with_capacity(envs.len() + 1);
|
||||
_envs.push((KUBECONFIG, kubernetes_config.as_ref().to_str().unwrap()));
|
||||
@@ -444,7 +444,7 @@ where
|
||||
));
|
||||
};
|
||||
|
||||
if !kubectl_exec_is_namespace_present(kubernetes_config.as_ref(), namespace.clone(), envs.clone()) {
|
||||
if !kubectl_exec_is_namespace_present(kubernetes_config.as_ref(), namespace, envs.clone()) {
|
||||
return Err(SimpleError::new(
|
||||
SimpleErrorKind::Other,
|
||||
Some(format! {"Can't set labels on namespace {} because it doesn't exists", namespace}),
|
||||
|
||||
Reference in New Issue
Block a user