From 827ad89071032d8ca23cea346c480b1391a696dc Mon Sep 17 00:00:00 2001 From: Rustin170506 Date: Sat, 16 Nov 2024 01:17:07 +0800 Subject: [PATCH 1/2] fix: set the correct image alias Signed-off-by: Rustin170506 --- src/operator_lxd.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/operator_lxd.rs b/src/operator_lxd.rs index a7079a0..34d30c2 100644 --- a/src/operator_lxd.rs +++ b/src/operator_lxd.rs @@ -474,6 +474,7 @@ chpasswd: fn get_image_alias(image: &Image) -> Result { match image { Image::CentOS7 => Ok("centos/7/cloud".to_owned()), + Image::CentOS9Stream => Ok("centos/9-Stream".to_owned()), Image::Ubuntu2004 => Ok("ubuntu/20.04/cloud".to_owned()), Image::Ubuntu2204 => Ok("ubuntu/22.04/cloud".to_owned()), _ => Err(anyhow!("invalid image {}", image)), From 82f1f20763c7f1e949b9749d8c371d949353118d Mon Sep 17 00:00:00 2001 From: Rustin170506 Date: Sat, 16 Nov 2024 01:20:27 +0800 Subject: [PATCH 2/2] fix: use cloud Signed-off-by: Rustin170506 --- src/operator_lxd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operator_lxd.rs b/src/operator_lxd.rs index 34d30c2..624ec7b 100644 --- a/src/operator_lxd.rs +++ b/src/operator_lxd.rs @@ -474,7 +474,7 @@ chpasswd: fn get_image_alias(image: &Image) -> Result { match image { Image::CentOS7 => Ok("centos/7/cloud".to_owned()), - Image::CentOS9Stream => Ok("centos/9-Stream".to_owned()), + Image::CentOS9Stream => Ok("centos/9-Stream/cloud".to_owned()), Image::Ubuntu2004 => Ok("ubuntu/20.04/cloud".to_owned()), Image::Ubuntu2204 => Ok("ubuntu/22.04/cloud".to_owned()), _ => Err(anyhow!("invalid image {}", image)),