mirror of https://github.com/ansible/ansible.git
rhsm_repository: Properly handle no repos (#51938)
When no repos are defined, the `repo` variable is undefined. Therefore append it only to the result if a repo was found. Otherwise Ansible will fail with an UnboundLocalError.pull/52054/head
parent
428f5d678e
commit
0469134f16
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- rhsm_repository - handle systems without any repos
|
Loading…
Reference in New Issue