Commits

Christian Theune  committed a062bd5

Sniff stderr instead of stdout to detect nginx reload failure.

  • Participants
  • Parent commits 6fc8901

Comments (0)

Files changed (1)

File components/nginx/component.py

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