These two options should be editable even for Red Hat products.
Created from redmine issue http://projects.theforeman.org/issues/13889
I would also test out the CLI as part of this bug. It should just work once this is fixed but it's worth testing out.
Moving to POST since upstream bug http://projects.theforeman.org/issues/13889 has been closed ------------- Justin Sherrill Applied in changeset commit:katello|d7ad5dc027e3a5f97c5f016df4a64df0baf95d53.
VERIFIED on sat6.2 snap4. download_policy and mirror_on_sync can now be set with all UI, Hammer and API methods: DOWNLOAD POLICY: ``` # hammer -u admin -p changeme repository update --id 3 --download-policy on_demand Repository updated # hammer -u admin -p changeme repository info --id 3 ... Download Policy: on_demand ... ``` ``` # curl -u admin:changeme 'https://my.sat6.server/katello/api/v2/repositories/3' -X PUT -H 'Content-Type: application/json;charset=utf-8' -d '{"download_policy":"background"}' {...,"download_policy":"background",...} ``` MIRROR ON SYNC: ``` # hammer -u admin -p changeme repository update --id 3 --mirror-on-sync false Repository updated # hammer -u admin -p changeme repository update --id 3 --mirror-on-sync true Repository updated ``` ``` # curl -u admin:changeme 'https://my.sat6.server/katello/api/v2/repositories/3' -X PUT -H 'Content-Type: application/json;charset=utf-8' -d '{"mirror_on_sync":false}' {"content_type":"yum","docker_upstream_name":null,"mirror_on_sync":false,...} # curl -u admin:changeme 'https://my.sat6.server/katello/api/v2/repositories/3' -X PUT -H 'Content-Type: application/json;charset=utf-8' -d '{"mirror_on_sync":true}' {"content_type":"yum","docker_upstream_name":null,"mirror_on_sync":true,...} ```
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1500