Hostname verification code change.
Hostname verification code change.

Resolves openbmc/openbmc-test-automation#1678

Signed-off-by: Prashanth Katti <def1213b2b853506bc42999227c7ced90b83bfd2@in.ibm.com>
Change-Id: I05671350b270b485985e73199b44f762d7e83e2b

openbmc/openbmc-test-automation,openbmc/openbmc-test-automation