Open TobiasZeuch181 opened 2 months ago
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @AnderEnder @alxgu @andytom @commel @evrardjp @lrupp @sealor @toabctl click here for bot help
Summary
When I try to deactivate a repository with the module zypper_repository, then this doesn't work. When I look at the code, I think this is because the code that was introduced in https://github.com/ansible-collections/community.general/commit/f0fcb221cd3d279f45bb1b463eb86ed9041324f1 where the fields for e.g. repodata['enabled'] are overwritten, if the repo-path is provided. I tried to use name instead of repo, but that doesn't work because state defaults to present and present required repo to be filled.
Issue Type
Bug Report
Component Name
zypper_repository
Ansible Version
Community.general Version
Configuration
OS / Environment
WSL (Windows subsystem for linux)
Steps to Reproduce
find a repository that is installed on the VM, e.g. packages-microsoft-com-prod-sle15 on a Azure VM
Expected Results
I expected the repository to be disabled
Actual Results
Code of Conduct