isotoma/yaybu — Issue #63: bug in simulate when user missing
Author: winjer
Created: 2012-02-01 10:45:21+00:00
State: open

```
Traceback (most recent call last):
File "/usr/local/bin/yaybu", line 9, in
load_entry_point('Yaybu==0.1.16', 'console_scripts', 'yaybu')()
File "/usr/local/lib/python2.6/dist-packages/Yaybu-0.1.16-py2.6.egg/yaybu/core/main.py", line 88, in main
rv = r.run(ctx)
File "/usr/local/lib/python2.6/dist-packages/Yaybu-0.1.16-py2.6.egg/yaybu/core/runner.py", line 77, in run
changed = ctx.get_bundle().apply(ctx, ctx.get_config())
File "/usr/local/lib/python2.6/dist-packages/Yaybu-0.1.16-py2.6.egg/yaybu/core/resource.py", line 325, in apply
if resource.apply(ctx, config):
File "/usr/local/lib/python2.6/dist-packages/Yaybu-0.1.16-py2.6.egg/yaybu/core/resource.py", line 178, in apply
changed = prov.apply(context)
File "/usr/local/lib/python2.6/dist-packages/Yaybu-0.1.16-py2.6.egg/yaybu/providers/execute.py", line 55, in apply
if self.execute(context.shell, self.resource.unless, passthru=True) == 0:
File "/usr/local/lib/python2.6/dist-packages/Yaybu-0.1.16-py2.6.egg/yaybu/providers/execute.py", line 37, in execute
group=self.resource.group, passthru=passthru, exceptions=False)
File "/usr/local/lib/python2.6/dist-packages/Yaybu-0.1.16-py2.6.egg/yaybu/core/shell.py", line 258, in execute
cmd = ShellCommand(command, shell, stdin, cwd, env, self.environment, self.verbose, passthru, user, group, self.simulate, logas)
File "/usr/local/lib/python2.6/dist-packages/Yaybu-0.1.16-py2.6.egg/yaybu/core/shell.py", line 92, in __init__
u = pwd.getpwnam(user)
KeyError: 'getpwnam(): name not found: postgres'
'''