Skip to content
Snippets Groups Projects
Verified Commit eaeafd09 authored by Alberto Miranda's avatar Alberto Miranda :hotsprings:
Browse files

ADM_deploy_adhoc_storage: Update RPC handler

parent 38f9aad4
No related branches found
No related tags found
1 merge request!69Resolve "C API should have `ADM_adhoc_storage_t` and `ADM_pfs_storage_t` types"
Pipeline #3377 passed
...@@ -457,16 +457,15 @@ ADM_deploy_adhoc_storage(hg_handle_t h) { ...@@ -457,16 +457,15 @@ ADM_deploy_adhoc_storage(hg_handle_t h) {
am_result.has_value()) { am_result.has_value()) {
const auto& storage_info = am_result.value(); const auto& storage_info = am_result.value();
const auto adhoc_storage = storage_info->adhoc_storage(); const auto adhoc_storage = storage_info->adhoc_storage();
ec = admire::error_code::success;
if(adhoc_storage.type() == admire::storage::type::gekkofs) { if(adhoc_storage.type() == admire::adhoc_storage::type::gekkofs) {
const auto adhoc_ctx = const auto adhoc_ctx = adhoc_storage.context();
(admire::adhoc_storage::ctx*) adhoc_storage.context().get();
/* Number of nodes */ /* Number of nodes */
const std::string nodes = const std::string nodes =
std::to_string(adhoc_ctx->resources().nodes().size()); std::to_string(adhoc_ctx.resources().nodes().size());
/* Walltime */ /* Walltime */
const std::string walltime = std::to_string(adhoc_ctx->walltime()); const std::string walltime = std::to_string(adhoc_ctx.walltime());
/* Launch script */ /* Launch script */
switch(const auto pid = fork()) { switch(const auto pid = fork()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment