AMBARI-1314. Hostname test is failing in some environments. (Nate Cole via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1440776 13f79535-47bb-0310-9956-ffa450edef68