mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
sdk: don't allow mounts in inject actions (#1653)
This commit is contained in:
@@ -85,6 +85,9 @@ impl DockerProcedure {
|
|||||||
if expected_io && self.io_format.is_none() {
|
if expected_io && self.io_format.is_none() {
|
||||||
color_eyre::eyre::bail!("expected io-format");
|
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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user