Commits

Christian Theune committed 58898a4

Fix reference to stdout/stderr in reporting nginx reload failure.

Comments (0)

Files changed (1)

components/nginx/component.py

     def update(self):
         stdout, stderr = self.cmd('sudo /etc/init.d/nginx reload')
         if 'failed, please correct errors above' in stderr:
-            logger.error(result)
+            logger.error(stdout)
+            logger.error(stderr)
             raise RuntimeError('nginx could not be reloaded')