- raise RuntimeError("More instances of VPP running on node "
- "{0}. VAT command {1} execution failed.".
- format(self._node['host'], cmd))
- raise RuntimeError("VPP not running on node {0}. VAT command "
- "{1} execution failed.".
- format(self._node['host'], cmd))
-
- logger.debug("VAT output: {0}".format(out))
+ msg = f"More instances of VPP running on node " \
+ f"{self._node[u'host']}. VAT command {cmd} " \
+ f"execution failed."
+ else:
+ msg = f"VPP not running on node {self._node[u'host']}. " \
+ f"VAT command {cmd} execution failed."
+ raise RuntimeError(msg)
+
+ logger.debug(f"VAT output: {out}")