Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk-editing parameters not working #105

Open
stdevel opened this issue Oct 3, 2018 · 0 comments
Open

Bulk-editing parameters not working #105

stdevel opened this issue Oct 3, 2018 · 0 comments
Assignees
Labels
bug confirmed Confirmed behaviour
Milestone

Comments

@stdevel
Copy link
Owner

stdevel commented Oct 3, 2018

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):

  • OS version: CentOS 7.5
  • Red Hat Satellite or Foreman/Katello version: 1.19.0/3.8.0

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'"}
}
@stdevel stdevel added bug confirmed Confirmed behaviour labels Oct 3, 2018
@stdevel stdevel added this to the 0.5.x milestone Oct 3, 2018
@stdevel stdevel self-assigned this Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed Confirmed behaviour
Projects
None yet
Development

No branches or pull requests

1 participant