devstructure/blueprint — Issue #104: Python Error [IndexError: string index out of range]
Author: szaydel
Created: 2011-12-06 01:54:07+00:00
State: open

Attempted to create a snapshot as follows on CentOS 6, 64bit, using latest version of blueprint.

[root]⌘ blueprint create --sh --message='Created prior to installation of filebench' bluep-20111205-001
# [blueprint] using cached blueprintignore(5) rules
# [blueprint] searching for npm packages
# [blueprint] searching for PEAR/PECL packages
# [blueprint] searching for software built from source
# [blueprint] searching for Yum packages
# [blueprint] searching for Ruby gems
# [blueprint] searching for APT packages
# [blueprint] searching for configuration files
# [blueprint] searching for Python packages
# [blueprint] searching for service dependencies
Traceback (most recent call last):
File "/usr/bin/blueprint-create", line 75, in
filename = getattr(b, options.generate)(options.relaxed).dumpf()
File "/usr/lib/python2.6/site-packages/blueprint/__init__.py", line 463, in sh
return frontend.sh.sh(self, relaxed, server, secret)
File "/usr/lib/python2.6/site-packages/blueprint/frontend/sh.py", line 186, in sh
service=service)
File "/usr/lib/python2.6/site-packages/blueprint/__init__.py", line 493, in walk
walk.walk(self, **kwargs)
File "/usr/lib/python2.6/site-packages/blueprint/walk.py", line 27, in walk
walk_files(b, **kwargs)
File "/usr/lib/python2.6/site-packages/blueprint/walk.py", line 96, in walk_files
callable(pathname, f)
File "/usr/lib/python2.6/site-packages/blueprint/frontend/sh.py", line 113, in file
s.add(*commands, stdin=f['content'], stdout=pathname)
File "/usr/lib/python2.6/site-packages/blueprint/frontend/sh.py", line 257, in add
self.out.append(command(*args, **kwargs))
File "/usr/lib/python2.6/site-packages/blueprint/frontend/sh.py", line 208, in command
'' if '\n' == stdin[-1] else '\n',
IndexError: string index out of range