Merge remote-tracking branch 'origin/master'
diff --git a/tools/test/bin/onos-patch-vm b/tools/test/bin/onos-patch-vm
index 60252c0..f80f349 100755
--- a/tools/test/bin/onos-patch-vm
+++ b/tools/test/bin/onos-patch-vm
@@ -15,6 +15,8 @@
ssh $remote "
sudo perl -pi.bak -e \"s/127.0.1.1.*/127.0.1.1 $name/g\" /etc/hosts
- sudo echo $name /etc/hostname
+ sudo perl -pi.bak -e \"s/.*/$name/g\" /etc/hostname
sudo hostname $name
-"
\ No newline at end of file
+" 2>/dev/null
+
+echo "$address: $(ssh $remote hostname)"