Commit 93221866 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Christos Stavrakakis
Browse files

Minor fix in setup_hosts (sed -i /etc/hosts)

Signed-off-by: default avatarDimitris Aragiorgis <>
parent f14c5e0a
......@@ -281,7 +281,7 @@ def setup_resolv_conf():
def setup_hosts():
debug(, "Tweaking /etc/hosts and ssh_config files...")
try_run("echo StrictHostKeyChecking no >> /etc/ssh/ssh_config")
cmd = " sed -i 's/^127.*/ localhost/g' /etc/hosts "
cmd = " sed -i 's/^127.*/ localhost/' /etc/hosts "
host_info = env.env.ips_info[]
cmd = "hostname %s" % host_info.hostname
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment