AMBARI-1160. Cannot add a hostname that has a number next to . in it. (yusaku)

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