summaryrefslogtreecommitdiffstats
path: root/src/endpoint
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-08 14:05:29 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-08 14:07:20 +0100
commite66929d6d5928ca882b1060fcd8e42cae89da1dd (patch)
treea92b7a566b4ad3984738ad1ff23c5b9ca2703383 /src/endpoint
parent24fff4c70f07fd51dee40aea52f136bc69f75d65 (diff)
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 <mail@beyermatthias.de>
Diffstat (limited to 'src/endpoint')
-rw-r--r--src/endpoint/configured.rs8
1 files changed, 6 insertions, 2 deletions
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::<Vec<_>>();
trace!("Job resources: Environment variables = {:?}", envs);