Revert changes to upate_hosts.rb

Change-Id: I8d2652107569bbf0b947f97e9d023bfd1fe3cc3c