2024-06-25 14:18:41 +00:00
|
|
|
From c3fda955572ae6f6e9101fb15f62dee8d323e508 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Steven Presti <spresti@redhat.com>
|
|
|
|
Date: Tue, 25 Jun 2024 10:16:14 -0400
|
|
|
|
Subject: [PATCH] metadata: add legacy-providers
|
|
|
|
|
|
|
|
---
|
|
|
|
src/metadata.rs | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
2023-02-03 22:59:23 +00:00
|
|
|
diff --git a/src/metadata.rs b/src/metadata.rs
|
2024-06-25 14:18:41 +00:00
|
|
|
index b89bf5b..e5021f7 100644
|
2023-02-03 22:59:23 +00:00
|
|
|
--- a/src/metadata.rs
|
|
|
|
+++ b/src/metadata.rs
|
2024-06-25 14:18:41 +00:00
|
|
|
@@ -53,6 +53,7 @@ pub fn fetch_metadata(provider: &str) -> Result<Box<dyn providers::MetadataProvi
|
|
|
|
"akamai" => box_result!(AkamaiProvider::try_new()?),
|
2023-02-03 22:59:23 +00:00
|
|
|
"aliyun" => box_result!(AliyunProvider::try_new()?),
|
|
|
|
"aws" => box_result!(AwsProvider::try_new()?),
|
|
|
|
+ "ec2" => box_result!(AwsProvider::try_new()?),
|
|
|
|
"azure" => box_result!(Azure::try_new()?),
|
|
|
|
"azurestack" => box_result!(AzureStack::try_new()?),
|
|
|
|
"cloudstack-metadata" => box_result!(CloudstackNetwork::try_new()?),
|
2024-06-25 14:18:41 +00:00
|
|
|
@@ -60,6 +61,7 @@ pub fn fetch_metadata(provider: &str) -> Result<Box<dyn providers::MetadataProvi
|
2023-02-03 22:59:23 +00:00
|
|
|
"digitalocean" => box_result!(DigitalOceanProvider::try_new()?),
|
|
|
|
"exoscale" => box_result!(ExoscaleProvider::try_new()?),
|
|
|
|
"gcp" => box_result!(GcpProvider::try_new()?),
|
|
|
|
+ "gce" => box_result!(GcpProvider::try_new()?),
|
2024-01-24 21:58:51 +00:00
|
|
|
"hetzner" => box_result!(HetznerProvider::try_new()?),
|
2023-02-03 22:59:23 +00:00
|
|
|
// IBM Cloud - VPC Generation 2.
|
|
|
|
"ibmcloud" => box_result!(IBMGen2Provider::try_new()?),
|
2024-06-25 14:18:41 +00:00
|
|
|
--
|
|
|
|
2.43.2
|
|
|
|
|