sdk: don't allow mounts in inject actions (#1653)

This commit is contained in:
Chris Guida
2022-07-18 13:26:00 -05:00
committed by GitHub
parent 4526618c32
commit 009f7ddf84

View File

@@ -85,6 +85,9 @@ impl DockerProcedure {
if expected_io && self.io_format.is_none() {
color_eyre::eyre::bail!("expected io-format");
}
if self.inject && !self.mounts.is_empty() {
color_eyre::eyre::bail!("mounts not allowed in inject actions");
}
Ok(())
}