Actions
Bug #21941
closedHost Group parameter is not validated while creating Discovery Rule.
Difficulty:
Triaged:
Bugzilla link:
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
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
Updated by Rahul Bajaj about 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_discovery|0f4900261b469065b6cf5a7d0fcf2fb058bccc6f.
Actions