Project

General

Profile

Actions

Bug #21958

closed

discovery-rule create ignores location-ids and organization-ids parameters

Added by Rahul Bajaj over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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

Actions #1

Updated by Rahul Bajaj over 6 years ago

  • Bugzilla link set to 1523221
Actions #2

Updated by Rahul Bajaj over 6 years ago

  • Description updated (diff)
Actions #3

Updated by Rahul Bajaj over 6 years ago

  • Description updated (diff)
Actions #4

Updated by Rahul Bajaj about 6 years ago

  • Project changed from Discovery to Hammer CLI
  • Category deleted (Discovery plugin)
Actions #5

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
Actions #6

Updated by Rahul Bajaj over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF