Bug #34594
closedMirror on sync still shows up in 'hammer repository info', while mirroring policy does not
Description
After the latest addition of mirroring_policy, it seems that mirror_on_sync was replaced but is still supported in the CLI. However, any time you call 'hammer repository info' on a repository, mirroring_policy is not shown and mirror_on_sync is always showing 'NO'. This occurs when any of the mirroring_policy options are selected.
How reproducible: 100%
Steps to Reproduce:
1.Create a repository and select a mirroring policy option
3.Hammer repository info --product '' --organization '' --name ''
Actual results:
[root@dhcp-2-175 ~]# hammer repository info --name EvOoLbJKhkPCQBl --product EHeKKj --organization 'ZrWgnT'
Id: 7
Name: EvOoLbJKhkPCQBl
Label: EvOoLbJKhkPCQBl
Description:
Organization: ZrWgnT
Red Hat Repository: no
Content Type: yum
Mirror on Sync: no
Url: http://foo.example.com/fake_yum1
Publish Via HTTP: yes
Published At: https://sat.example.com/pulp/content/ZrWgnT/Library/custom/EHeKKj/EvOoLbJKhkPCQBl/
Relative Path: ZrWgnT/Library/custom/EHeKKj/EvOoLbJKhkPCQBl
Download Policy: immediate
Ignorable Content Units:
HTTP Proxy:
HTTP Proxy Policy: global_default_http_proxy
Product:
Id: 5
Name: EHeKKj
GPG Key:
Sync:
Status: Success
Last Sync Date: 1 minute
Created: 2022/03/08 16:26:00
Updated: 2022/03/08 17:03:53
Content Counts:
Packages: 32
Source RPMS: 0
Package Groups: 2
Errata: 4
Module Streams: 0
Expected results: mirror_on_sync should either be removed or replaced with mirroring_policy
Updated by The Foreman Bot over 2 years ago
- Status changed from New to Ready For Testing
- Assignee set to Partha Aji
- Pull request https://github.com/Katello/hammer-cli-katello/pull/840 added
Updated by Partha Aji over 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset hammer-cli-katello|75bac351da07bb1d5b5488f60a5c46a00505aa5f.