Project

General

Profile

Bug #30726

Discovery settings 'Hostname_facts' should not be allowed to set empty

Added by Rahul Bajaj over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
No
Bugzilla link:

Description

If settings like hostname_facts and hostname_prefix are set to empty then discovery will fail w/ error:
Exception: Invalid_facts: hash doesn't contain valid value for any of the facts in discovery_hostname

So as per above error, user shouldn't allow to set any of the above setting as "empty", ideally, hostname_facts shouldn't set as empty. On setting it empty, user should get an error message.


Related issues

Related to Foreman - Bug #30727: settings_type 'string' should not have empty valueClosed

Associated revisions

Revision 9101d6dc (diff)
Added by Rahul Bajaj over 1 year ago

Fixes #30726 - hostname attr must not be empty

History

#1 Updated by Rahul Bajaj over 1 year ago

  • Related to Bug #30727: settings_type 'string' should not have empty value added

#2 Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_discovery/pull/505 added

#3 Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Discovery Plugin 16.0 added

#4 Updated by Rahul Bajaj over 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF