Jose Diaz-Gonzalez

fix code smell

...@@ -51,8 +51,9 @@ class Context(object): ...@@ -51,8 +51,9 @@ class Context(object):
51 self.environment = environment 51 self.environment = environment
52 52
53 if self.environment not in self.config.get('environments', {}): 53 if self.environment not in self.config.get('environments', {}):
54 - LOG.error('Invalid environment {0} specified'.format( 54 + message = 'Invalid environment {0} specified'.format(
55 - self.environment)) 55 + self.environment)
56 + LOG.error(message)
56 sys.exit(1) 57 sys.exit(1)
57 58
58 profile = self.config['environments'][self.environment]['profile'] 59 profile = self.config['environments'][self.environment]['profile']
......