summaryrefslogtreecommitdiffstats
path: root/src/commands/build.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-11 12:43:04 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-11 12:43:17 +0100
commitf204f854980a17d0fc89b6d1a2753bb19dcab478 (patch)
treedcf806aff7b26584071e98d2c75c16d361274ff1 /src/commands/build.rs
parentce6f9d77c80849d11b442cf4c6783ec972456521 (diff)
Rename for consistency: deny_images -> denied_images
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/commands/build.rs')
-rw-r--r--src/commands/build.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/build.rs b/src/commands/build.rs
index a46166d..5aae1bb 100644
--- a/src/commands/build.rs
+++ b/src/commands/build.rs
@@ -218,8 +218,8 @@ pub async fn build(repo_root: &Path,
}
}
- if let Some(denylist) = pkg.deny_on_images() {
- if denylist.iter().any(|denied| image_name == *denied) {
+ if let Some(deniedlist) = pkg.denied_images() {
+ if deniedlist.iter().any(|denied| image_name == *denied) {
return Err(anyhow!("Package {} {} is not allowed to be built on {}", pkg.name(), pkg.version(), image_name))
}
}