Project

General

Profile

Actions

Bug #30726

closed

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

Added by Rahul Bajaj about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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 1 (0 open1 closed)

Related to Foreman - Bug #30727: settings_type 'string' should not have empty valueClosedRahul BajajActions
Actions #1

Updated by Rahul Bajaj about 4 years ago

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

Updated by The Foreman Bot about 4 years ago

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

Updated by The Foreman Bot about 4 years ago

  • Fixed in Releases Discovery Plugin 16.0 added
Actions #4

Updated by Rahul Bajaj about 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF