make cdist.MissingEnvironmentVariableError print the key and not fail :-)

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-06 19:22:08 +02:00
parent df5de24b72
commit 2157cef2a6

View file

@ -33,4 +33,4 @@ class MissingEnvironmentVariableError(Error):
self.name = name
def __str__(self):
return 'Missing required environment variable: {0.name}'.format(o)
return 'Missing required environment variable: ' + str(self.name)