Skip to content

Commit

Permalink
fix: merge migration functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Sopena Ballesteros committed Jan 23, 2024
1 parent a63ce96 commit 897e549
Show file tree
Hide file tree
Showing 3 changed files with 414 additions and 238 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ publish = false # cargo dist --> Avoid publishing to crates.io
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
mesa = "0.24.0"
# mesa = { path = "../mesa" } # Only for development purposes
# mesa = "0.24.0"
mesa = { path = "../mesa" } # Only for development purposes
strum = "0.25.0"
strum_macros = "0.25"
chrono = "0.4.31"
Expand Down
11 changes: 7 additions & 4 deletions src/cli/commands/migrate_backup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pub async fn exec(
let dest_path = Path::new(destination.unwrap());
let bucket_name = "boot-images";
let files2download = ["manifest.json", "initrd", "kernel", "rootfs"];
let countfiles2download = files2download.len() + 3 ; // BOS + CFS + HSM
// let files2download = ["manifest.json"];
let countfiles2download = files2download.len() + 3; // BOS + CFS + HSM
// let files2download = ["manifest.json"];

log::debug!("Create directory '{}'", destination.unwrap());
match std::fs::create_dir_all(dest_path) {
Expand Down Expand Up @@ -126,7 +126,6 @@ pub async fn exec(
shasta_token,
shasta_base_url,
shasta_root_cert,

Some(&configuration_name_clean),
)
.await
Expand Down Expand Up @@ -207,7 +206,11 @@ pub async fn exec(
),
};
}
Err(error) => panic!("{}", error.to_string())
} else {
panic!(
"Image related to BOS session template {} - NOT FOUND",
image_id_related_to_bos_sessiontemplate
);
}
}
}
Expand Down
Loading

0 comments on commit 897e549

Please sign in to comment.