Bug #11441

Hammer does not check whether it get correct number of resources when translating name to id parameters

Added by Marek Hulán almost 2 years ago. Updated about 1 year ago.

Status:New
Priority:Normal
Assigned To:-
Category:Hammer core
Target version:hammer-cli 0.7.0
Difficulty: Bugzilla link:
Found in release: Pull request:
Story points-
Velocity based estimate-

Description

When I run hammer like this

hammer -d filter create --permissions view_puppetclasses,create_puppetclasses,edit_puppetclasses,destroy_puppetclasses,import_puppetclasses --role demo2

hammer searches permissions to get their ids. Since there is not scope search support it get 30 records instead of expected 5 and he sends these permission as parameter_ids. I think we should check that we get expected number of parameters.


Related issues

Related to Foreman - Bug #11303: Filter management with hamemr seems to be missing means o... Closed 08/05/2015

History

#1 Updated by Marek Hulán almost 2 years ago

  • Related to Bug #11303: Filter management with hamemr seems to be missing means of associating resource type added

#2 Updated by Tomáš Strachota over 1 year ago

  • Target version set to hammer-cli 0.6.0

#3 Updated by Tomáš Strachota about 1 year ago

  • Target version changed from hammer-cli 0.6.0 to hammer-cli 0.7.0

Also available in: Atom PDF