Skip to content

Commit

Permalink
align to the runtime spec
Browse files Browse the repository at this point in the history
  • Loading branch information
shorii committed Sep 21, 2021
1 parent 072a94b commit 5c195d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rootless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 5c195d8

Please sign in to comment.