Revision 02905e15 snf-deploy/snfdeploy/__init__.py

b/snf-deploy/snfdeploy/__init__.py
520 520
def do_create_keys(args, env):
521 521
  d = os.path.join(env.templates, "root/.ssh")
522 522
  a = os.path.join(d, "authorized_keys")
523
  # Delete old keys
524
  for filename in os.listdir(d):
525
      os.remove(os.path.join(d, filename))
526
  # Generate new keys
523 527
  for t in ("dsa", "rsa"):
524 528
    f = os.path.join(d, "id_" + t)
525 529
    cmd = 'ssh-keygen -q -t {0} -f {1} -N ""'.format(t, f)

Also available in: Unified diff