Reproduced with:
```sh cat <<EOT > /tmp/user-data.yaml #cloud-config yum_repos: rhel-8.5-appstream-mycloud: baseurl: <url> name: "repo name" enabled: True EOT
lxc launch images:fedora/36/cloud fedora --config=user.user-data="$(cat /tmp/user-data.yaml)" lxc exec fedora -- cloud-init status --wait lxc exec fedora -- cat /etc/yum.repos.d/rhel_8.5_appstream_mycloud.repo ```
I did not find an official source saying that repo ids must contain "-" as word separator, but it looks like they do. Therefore, I think it would be safe to remove that line and let users have more control over repo names.
Reproduced with:
```sh 8.5-appstream- mycloud:
cat <<EOT > /tmp/user-data.yaml
#cloud-config
yum_repos:
rhel-
baseurl: <url>
name: "repo name"
enabled: True
EOT
lxc launch images: fedora/ 36/cloud fedora --config= user.user- data="$ (cat /tmp/user- data.yaml) " repos.d/ rhel_8. 5_appstream_ mycloud. repo
lxc exec fedora -- cloud-init status --wait
lxc exec fedora -- cat /etc/yum.
```
I did not find an official source saying that repo ids must contain "-" as word separator, but it looks like they do. Therefore, I think it would be safe to remove that line and let users have more control over repo names.