devstructure/blueprint — Issue #101: blueprint show -s indexerror
Author: alexnesbitt
Created: 2011-11-22 00:45:14+00:00
State: open

running on ubunto-10.04.3

alex@alex-ubuntu:~$ blueprint show -S myserver
Traceback (most recent call last):
File "/usr/bin/blueprint-show", line 66, in
filename = getattr(b, options.generate)(options.relaxed).dumpf()
File "/usr/lib/python2.6/dist-packages/blueprint/__init__.py", line 463, in sh
return frontend.sh.sh(self, relaxed, server, secret)
File "/usr/lib/python2.6/dist-packages/blueprint/frontend/sh.py", line 186, in sh
service=service)
File "/usr/lib/python2.6/dist-packages/blueprint/__init__.py", line 493, in walk
walk.walk(self, **kwargs)
File "/usr/lib/python2.6/dist-packages/blueprint/walk.py", line 27, in walk
walk_files(b, **kwargs)
File "/usr/lib/python2.6/dist-packages/blueprint/walk.py", line 96, in walk_files
callable(pathname, f)
File "/usr/lib/python2.6/dist-packages/blueprint/frontend/sh.py", line 113, in file
s.add(*commands, stdin=f['content'], stdout=pathname)
File "/usr/lib/python2.6/dist-packages/blueprint/frontend/sh.py", line 257, in add
self.out.append(command(*args, **kwargs))
File "/usr/lib/python2.6/dist-packages/blueprint/frontend/sh.py", line 208, in command
'' if '\n' == stdin[-1] else '\n',
IndexError: string index out of range