Project

General

Profile

Actions

Bug #21941

closed

Host Group parameter is not validated while creating Discovery Rule.

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

Status:
Closed
Priority:
High
Assignee:
Category:
Discovery plugin
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

While creating Discovery Rule, Host Group parameter is mandatory but if
any random Host Group ID is passed in hammer command creates the rule successfully.

Also, if no Host Group is present and Host Group ID is provided then also Discovery Rule is created with no Host Group.

[vagrant@centos7-hammer-devel ~]$ hammer -u admin -p changeme discovery-rule create --hostgroup-id 999 --locations="Default Location" --name "rabajaj" --search "last_report = Today" --organizations="Default Organization"
Rule created

Actions #1

Updated by The Foreman Bot over 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_discovery/pull/395 added
Actions #2

Updated by Rahul Bajaj about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF