stdevel / katprep

Python toolkit for automating system maintenance and generating patch reports along with Foreman/Katello and Red Hat Satellite 6.x
GNU General Public License v3.0
35 stars 6 forks source link

Bulk-editing parameters not working #105

Open stdevel opened 5 years ago

stdevel commented 5 years ago

Describe the bug It is not possible to bulk-edit parameters using katprep_parameters

To Reproduce Steps to reproduce the behavior:

  1. Enter a command such as katprep_parameters --insecure -C katprep.auth -s pinkepank.test.loc -R -g prod-hosts
  2. See error

Expected behavior Bulk-editing parameters is possible.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Stacktrace:

Authentication container password:
Traceback (most recent call last):
  File "/home/cstan/.local/bin/katprep_parameters", line 9, in <module>
    load_entry_point('katprep==0.5.0', 'console_scripts', 'katprep_parameters')()
  File "/home/cstan/katprep/katprep/parameters.py", line 376, in cli
    main(options, args)
  File "/home/cstan/katprep/katprep/parameters.py", line 356, in main
    manage_params(options)
  File "/home/cstan/katprep/katprep/parameters.py", line 175, in manage_params
    change_param(options, entry, "del", options.dry_run)
  File "/home/cstan/katprep/katprep/parameters.py", line 136, in change_param
    json.dumps(payload))
  File "/home/cstan/katprep/katprep/clients/ForemanAPIClient.py", line 231, in api_delete
    return self.__api_request("delete", sub_url, payload)
  File "/home/cstan/katprep/katprep/clients/ForemanAPIClient.py", line 180, in __api_request
    result.status_code, result.text))
katprep.clients.SessionException: 404: HTTP operation not successful {
  "error": {"message":"Resource parameter not found by id 'None'"}
}