From e66929d6d5928ca882b1060fcd8e42cae89da1dd Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 8 Dec 2020 14:05:29 +0100 Subject: Use EnvironmentVariableName type for names of ENV variables This makes the typing a bit more helpful by using a type for the name of environment variables. Signed-off-by: Matthias Beyer --- src/endpoint/configured.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/endpoint') diff --git a/src/endpoint/configured.rs b/src/endpoint/configured.rs index 46515dc..191e565 100644 --- a/src/endpoint/configured.rs +++ b/src/endpoint/configured.rs @@ -180,8 +180,12 @@ impl Endpoint { let (container_id, _warnings) = { let envs = job.environment() .into_iter() - .chain(job.package_environment().into_iter()) - .map(|(k, v)| format!("{}={}", k, v)) + .map(|(k, v)| format!("{}={}", k.as_ref(), v)) + .chain({ + job.package_environment() + .into_iter() + .map(|(k, v)| format!("{}={}", k, v)) + }) .collect::>(); trace!("Job resources: Environment variables = {:?}", envs); -- cgit v1.2.3