Closed pescobar closed 6 years ago
ups, I just found the stupid mistake I was doing. I was using the repository name instead of the repository label, which only differ in a dot and an underscore. when reading it I hadn't notice they are different.
name | "base_x86_64_centos_7.4"
vs label | "base_x86_64_centos_7_4"
Using this config with the label works fine:
repositories:
base_x86_64_centos_7_4:
pulp_id: 45917054-6fe5-4466-abbb-873d4bc74131
os_release: 7
I am trying to import errata in Foreman 1.16/Katello 3.5. I can correctly insert the errata in redis but when I try to insert it to Katello I get this error:
This is some of the data I get when accessing
/katello/api/v2/repositories
And this is the repositories section in my config file
config.yaml
for the scriptI tried to add a
print kat_repo
here https://github.com/nicolas-r/katello-centos-errata-import/blob/master/centos-errata-katello-importer.py#L78 and I verified that the script query the katello api correctly.Am I doing something wrong in the config file or is this a bug in the script?
Thanks.