From 5c195d8b5f5eb4e6873d475016a86faf8c9383c0 Mon Sep 17 00:00:00 2001 From: shorii Date: Tue, 21 Sep 2021 21:50:58 +0900 Subject: [PATCH] align to the runtime spec --- src/rootless.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rootless.rs b/src/rootless.rs index 8e062bb9e..92f5873f1 100644 --- a/src/rootless.rs +++ b/src/rootless.rs @@ -96,11 +96,11 @@ fn validate(spec: &Spec) -> Result<()> { let gid_mappings = linux .gid_mappings .as_ref() - .context("rootless containers require gid_mappings in spec")?; + .context("rootless containers require gidMappings in spec")?; let uid_mappings = linux .uid_mappings .as_ref() - .context("rootless containers require uid_mappings in spec")?; + .context("rootless containers require uidMappings in spec")?; if uid_mappings.is_empty() { bail!("rootless containers require at least one uid mapping");