@@ -39,16 +39,17 @@ var (
39
39
// built-in projects to look for images/families containing the string
40
40
// on the left in
41
41
var ImageMap = map [string ]string {
42
- "centos" : "centos-cloud" ,
43
- "coreos" : "coreos-cloud" ,
44
- "debian" : "debian-cloud" ,
45
- "opensuse" : "opensuse-cloud" ,
46
- "rhel" : "rhel-cloud" ,
47
- "rocky-linux" : "rocky-linux-cloud" ,
48
- "sles" : "suse-cloud" ,
49
- "ubuntu" : "ubuntu-os-cloud" ,
50
- "windows" : "windows-cloud" ,
51
- "windows-sql" : "windows-sql-cloud" ,
42
+ "centos" : "centos-cloud" ,
43
+ "coreos" : "coreos-cloud" ,
44
+ "debian" : "debian-cloud" ,
45
+ "fedora-coreos" : "fedora-coreos-cloud" ,
46
+ "opensuse" : "opensuse-cloud" ,
47
+ "rhel" : "rhel-cloud" ,
48
+ "rocky-linux" : "rocky-linux-cloud" ,
49
+ "sles" : "suse-cloud" ,
50
+ "ubuntu" : "ubuntu-os-cloud" ,
51
+ "windows" : "windows-cloud" ,
52
+ "windows-sql" : "windows-sql-cloud" ,
52
53
}
53
54
54
55
func resolveImageImageExists (c * transport_tpg.Config , project , name , userAgent string ) (bool , error ) {
@@ -101,6 +102,9 @@ func ResolveImage(c *transport_tpg.Config, project, name, userAgent string) (str
101
102
for k , v := range ImageMap {
102
103
if strings .Contains (name , k ) {
103
104
builtInProject = v
105
+ if builtInProject == "coreos-cloud" && strings .Contains (name , "fedora" ) {
106
+ builtInProject = ImageMap ["fedora-coreos" ]
107
+ }
104
108
break
105
109
}
106
110
}
0 commit comments