Project

General

Profile

Actions

Bug #20119

closed

Be more descriptive when validating hostname

Added by Ivan Necas almost 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Inventory
Target version:
Fixed in Releases:
Found in Releases:

Description

Currently, we validate hostname with a regular expression. If the regular expression
doesn't match, the host name is considred as invalid, printing an info that
name is invalid. In some environments, it's not that uncommon to include
the '_' in the host name, and it's hard to user to figure out what exactly is wrong with
the name.

The new behaviour should be to explicitly mention that the host can't include
`_`, before using the regular expression.

Actions

Also available in: Atom PDF