thatch45/salt — Issue #185: Traceback on new install if user forgets to start the master
Author: whiteinge
Created: 2011-11-05 21:19:57+00:00
State: open

If a user installs Salt then goes to run a `salt` command before starting the master for the first time he gets the following traceback:

```
Traceback (most recent call last):
File "/usr/bin/salt", line 16, in
main()
File "/usr/bin/salt", line 13, in main
client.run()
File "/usr/lib/python2.6/dist-packages/salt/cli/__init__.py", line 208, in run
full_ret = local.cmd_full_return(*args)
File "/usr/lib/python2.6/dist-packages/salt/client.py", line 162, in cmd_full_return
timeout=timeout)
File "/usr/lib/python2.6/dist-packages/salt/client.py", line 310, in pub
minions = self.check_minions(tgt, expr_form)
File "/usr/lib/python2.6/dist-packages/salt/client.py", line 279, in check_minions
}[expr_form](expr)
File "/usr/lib/python2.6/dist-packages/salt/client.py", line 85, in _check_glob_minions
os.chdir(os.path.join(self.opts['pki_dir'], 'minions'))
OSError: [Errno 2] No such file or directory: '/etc/salt/pki/minions'
```