saltstack/salt — pull request #1855 by s0undt3ch (2012-08-20 16:54:39+00:00)
Title: Create `gen_keys_dir` directory on `salt-key`

If the user passes a non existing path to `--gen-keys-dir`, we create it before trying to write the keys into it.