Adds Hostname Validator 57/68157/2
authorParker Berberian <pberberian@iol.unh.edu>
Fri, 28 Jun 2019 13:58:54 +0000 (09:58 -0400)
committerParker Berberian <pberberian@iol.unh.edu>
Fri, 28 Jun 2019 14:28:53 +0000 (10:28 -0400)
commita02f1d81f6651ddf5b9353c2e1d7fbf873a19466
tree081b06663ca04c39d818740efda166d99c78dff9
parent1293c6e1d23d8fe62ee6721ff9a107ca571d9244
Adds Hostname Validator

Creates a single place to validate hostnames, with public
fields for regex that can be copied to the frontend.

We do hostname validation inconsistently all over the place,
we should move to using this single validator.

Change-Id: I7b71fd89843a7e5b7f9d93dcb23f4645abe71dd0
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
src/resource_inventory/resource_manager.py
src/resource_inventory/tests/test_managers.py