Only log OVN NRPE failure when it fails

This commit is contained in:
Xav Paice
2020-10-02 11:00:51 +13:00
parent e70be304e5
commit 7a67d98b45

View File

@@ -72,7 +72,8 @@ class BaseCharmOperationTest(test_utils.BaseCharmTest):
'check_{}.cfg'.format(check_name)
)
ret = self._retry_check_commands_on_units(cmds, units)
logging.info(ret)
if ret:
logging.info(ret)
self.assertIsNone(ret, msg=ret)