Bug #21958
closeddiscovery-rule create ignores location-ids and organization-ids parameters
Description
Description of problem:
this is a regression
$ hammer -u admin -p changeme discovery-rule create --hostgroup-id 1 --location-ids=2 --name "rplevka_dr" --search "last_report = Today" --organization-ids=1
Could not create the rule:
Error: Could not find location, please set one of options --locations, --location-titles, --location-ids.
$ hammer -u admin -p changeme discovery-rule create --hostgroup-id 1 --locations="Default Location" --name "rplevka_dr" --search "last_report = Today" --organization-ids=1
Could not create the rule:
Error: Could not find organization, please set one of options --organizations, --organization-titles, --organization-ids.
$ hammer -u admin -p changeme discovery-rule create --hostgroup-id 1 --locations="Default Location" --name "rplevka_dr" --search "last_report = Today" --organizations="Default Organization"
Could not create the rule:
Name has already been taken
Version-Release number of selected component (if applicable):
6.3.0-27
Updated by Rahul Bajaj about 6 years ago
- Project changed from Discovery to Hammer CLI
- Category deleted (
Discovery plugin)
Updated by The Foreman Bot about 6 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli-foreman/pull/347 added
Updated by Rahul Bajaj over 5 years ago
- Status changed from Ready For Testing to Closed
Since martin's pr: https://github.com/theforeman/hammer-cli-foreman/pull/346/files#diff-5557b50f21382f8aa55f642fe7bda158R98 is now merged, we can have this issue closed :)