Commit c5a385c0 authored by Heinz N. Gies's avatar Heinz N. Gies

Still return 0 if image was already imported

parent bd74e8d3
Pipeline #12653305 canceled with stage
in 10 seconds
[root]
name = "vmadm"
version = "0.3.2"
version = "0.3.3"
dependencies = [
"aud 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"bzip2 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
......
[package]
name = "vmadm"
version = "0.3.3"
version = "0.3.4"
authors = ["Heinz N. Gies <heinz@project-fifo.net>"]
[dependencies]
......
VERSION=0.3.3
VERSION=0.3.4
COMPONENT_INTERNAL=rvmadm
COMPONENT=vmadm
......@@ -198,8 +198,8 @@ pub fn import(config: &Config, uuid: Uuid) -> Result<i32, Box<Error>> {
url.push_str(uuid_str.as_str());
if zfs::is_present(dataset.as_str()) {
let err = format!("Image {} already imported", uuid_str);
return Err(GenericError::bx(err.as_str()));
println!("Image {} already imported.", uuid_str);
return Ok(0);
};
debug!("Fethcing image"; "repo" => config.settings.repo.clone(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment