Updated code to match new rules
[integration/test.git] / tools / odl-mdsal-clustering-tests / scripts / cluster_rest_script.py
index 81c1ecf669f1905657fb7c171c5626559fcb954b..ce6342d37b23ccdf8b58059240f0dd72003a4c42 100644 (file)
@@ -666,11 +666,10 @@ if __name__ == "__main__":
 
     if (args.action not in _handler_matrix or
             args.itemtype not in _handler_matrix[args.action]):
-            logger.error("Unsupported combination of action: " +
-                         str(args.action) + " and item: " + str(args.itemtype))
-            raise NotImplementedError("Unsupported combination of action: "
-                                      + str(args.action) +
-                                      " and item: " + str(args.itemtype))
+            msg = "Unsupported combination of action: " + str(args.action)
+            msg += " and item: " + str(args.itemtype)
+            logger.error(msg)
+            raise NotImplementedError(msg)
 
     # TODO: need to filter out situations when we cannot use more items
     # in one rest request (rpc or delete?)