summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/other_tools/ops_maps/content_cas_map.cpp2
-rw-r--r--src/other_tools/ops_maps/content_cas_map.hpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/other_tools/ops_maps/content_cas_map.cpp b/src/other_tools/ops_maps/content_cas_map.cpp
index 51d909b5..898aa4f1 100644
--- a/src/other_tools/ops_maps/content_cas_map.cpp
+++ b/src/other_tools/ops_maps/content_cas_map.cpp
@@ -67,7 +67,7 @@ auto CreateContentCASMap(JustMR::PathsPtr const& just_mr_paths,
}
JustMRProgress::Instance().TaskTracker().Start(key.origin);
// check if content is in remote CAS, if a remote is given
- if (remote_api and local_api and remote_api->IsAvailable({digest}) and
+ if (remote_api and local_api and remote_api->IsAvailable(digest) and
remote_api->RetrieveToCas(
{Artifact::ObjectInfo{.digest = digest,
.type = ObjectType::File}},
diff --git a/src/other_tools/ops_maps/content_cas_map.hpp b/src/other_tools/ops_maps/content_cas_map.hpp
index 1dc18dcd..b6413761 100644
--- a/src/other_tools/ops_maps/content_cas_map.hpp
+++ b/src/other_tools/ops_maps/content_cas_map.hpp
@@ -15,6 +15,7 @@
#ifndef INCLUDED_SRC_OTHER_TOOLS_OPS_MAPS_CONTENT_CAS_MAP_HPP
#define INCLUDED_SRC_OTHER_TOOLS_OPS_MAPS_CONTENT_CAS_MAP_HPP
+#include <optional>
#include <string>
#include "nlohmann/json.hpp"