diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-06-09 15:01:05 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-06-09 15:01:05 +0200 |
commit | d6a62d748de71dd7ae0fad8da4289113616cfb99 (patch) | |
tree | 257a878afe9bd6996bd6bd5e6d80879b7c6e1c8e /src/endpoint | |
parent | 6798e208d134f11c753489cacbdb5661d5333207 (diff) |
Use constant for patch destination prefix
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/endpoint')
-rw-r--r-- | src/endpoint/configured.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/endpoint/configured.rs b/src/endpoint/configured.rs index 8fdec64..aecb291 100644 --- a/src/endpoint/configured.rs +++ b/src/endpoint/configured.rs @@ -543,8 +543,8 @@ impl<'a> PreparedContainer<'a> { .patches() .iter() .map(|patch| async move { - let destination = PathBuf::from("/patches").join(patch); - trace!("Copying patch {} to container at /patches/{}", patch.display(), destination.display()); + let destination = PathBuf::from(crate::consts::PATCH_DIR_PATH).join(patch); + trace!("Copying patch {} to container at {}/{}", crate::consts::PATCH_DIR_PATH, patch.display(), destination.display()); let mut buf = vec![]; tokio::fs::OpenOptions::new() |