aboutsummaryrefslogtreecommitdiff
path: root/src/zencompute/cloudmetadata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencompute/cloudmetadata.cpp')
-rw-r--r--src/zencompute/cloudmetadata.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/zencompute/cloudmetadata.cpp b/src/zencompute/cloudmetadata.cpp
index 65bac895f..eb4c05f9f 100644
--- a/src/zencompute/cloudmetadata.cpp
+++ b/src/zencompute/cloudmetadata.cpp
@@ -23,22 +23,6 @@ static constexpr std::string_view kImdsEndpoint = "http://169.254.169.254";
// is a local service on the hypervisor so 200ms is generous for actual cloud VMs.
static constexpr auto kImdsTimeout = std::chrono::milliseconds{200};
-std::string_view
-ToString(CloudProvider Provider)
-{
- switch (Provider)
- {
- case CloudProvider::AWS:
- return "AWS";
- case CloudProvider::Azure:
- return "Azure";
- case CloudProvider::GCP:
- return "GCP";
- default:
- return "None";
- }
-}
-
CloudMetadata::CloudMetadata(std::filesystem::path DataDir) : CloudMetadata(std::move(DataDir), std::string(kImdsEndpoint))
{
}
@@ -610,7 +594,7 @@ CloudMetadata::PollGCPTermination()
#if ZEN_WITH_TESTS
-# include <zencompute/mockimds.h>
+# include <zenutil/cloud/mockimds.h>
# include <zencore/filesystem.h>
# include <zencore/testing.h>