Description of problem: Report template information does not include 'Locked' attribute. Version-Release number of selected component (if applicable): satellite-6.5.0-6.beta.el7sat.noarch How reproducible: Always Steps to Reproduce: 1. Fetch report template info using any method given below- # curl -X GET -k -u admin:<pwd> https://<sat-fqdn>/api/report_templates/<template-id> -H 'content-type: application/json' OR # hammer report-template info --id <template-id> 2. the output of above curl/hammer does not have the value for 'Locked' attribute. Actual results: curl/hammer command to get the report template info, does not have the value for 'Locked' attribute. Expected results: 'Locked' attribute should be displayed through API request and hammer output. Additional info: - from the webUI, it can be checked if report template is locked or not. - As a user, I may want to check if report template is locked or not from the API response or from the hammer output. - like the output of `hammer template info --id <template-id>` it would be good to include the 'Locked' attribute for report template.
Created redmine issue http://projects.theforeman.org/issues/26230 from this bug
Hello folks, I'm checking on Satellite 6.6 and the info is already there. --- # hammer report-template list ----|-------------------------------------------------------------- ID | NAME ----|-------------------------------------------------------------- 112 | Applicable errata 113 | Applied Errata 171 | Hosts - compare content hosts packages 170 | Hosts - compare content hosts packages - old1 169 | Hosts - compare content hosts packages only difference - old2 165 | Hosts - complete list 114 | Host statuses 167 | new01 115 | Registered hosts 116 | Subscriptions 166 | test 168 | xxx ----|-------------------------------------------------------------- # hammer report-template info --id 112 Id: 112 Name: Applicable errata Locked: yes <<<<<<<<<<<<<<<<<<<<<<<<<<<< Default: yes Created at: 2019/11/20 17:49:52 Updated at: 2019/11/20 17:49:52 Locations: BURNABY Organizations: ACME Template inputs: 1) Name: Hosts filter Description: Limit the report only on hosts found by this search query. Keep empty for report on all available hosts. Required: no 2) Name: Errata filter Description: Limit the report only on errata found by this search query. Keep empty for report on all available errata. Required: no --- Note. On 6.5 I can't see the info indeed --- # hammer report-template info --id 105 Id: 105 Name: Applicable errata Default: yes Created at: 2019/10/02 17:12:58 Updated at: 2019/10/02 17:12:58 Locations: Burnaby Organizations: ACME Template inputs: 1) Name: Hosts filter Description: Limit the report only on hosts found by this search query. Keep empty for report on all available hosts. Required: no 2) Name: Errata filter Description: Limit the report only on errata found by this search query. Keep empty for report on all available errata. Required: no --- Once this is available on 6.6, I believe this BZ can be closed. What do you think my friend? Waldirio
Thanks Waldirio for confirmation, closing this one now!