Revision 8665d8b6

b/snf-deploy/fabfile.py
281 281
def setup_hosts():
282 282
    debug(env.host, "Tweaking /etc/hosts and ssh_config files...")
283 283
    try_run("echo StrictHostKeyChecking no >> /etc/ssh/ssh_config")
284
    cmd = " sed -i 's/^127.*/127.0.0.1 localhost/g' /etc/hosts "
284
    cmd = " sed -i 's/^127.*/127.0.0.1 localhost/' /etc/hosts "
285 285
    try_run(cmd)
286 286
    host_info = env.env.ips_info[env.host]
287 287
    cmd = "hostname %s" % host_info.hostname

Also available in: Unified diff