From 9269d35ea876fa54edb9b332e927ee9d73c40f50 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Wed, 5 Jul 2017 15:15:50 -0400 Subject: [PATCH] Fix error message when support matrix entry is missing a driver This was noticed in change If10cffd0dc4c9879f6754ce39bee5fae1d04f474 which was missing the powervm driver target for the extend-volume entry. Before this change, the error message was: 'libvirt-vz-ct' missing in '[operation.extend-volume]' section This was really confusing because that driver is in the change. What was missing was powervm, but because the error message is using the wrong key that was not showing up. Change-Id: I2e7ea49d5ba42cc633796222af47c1d4cd59f96b Closes-Bug: #1702542 --- doc/ext/support_matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ext/support_matrix.py b/doc/ext/support_matrix.py index 880ce4dc28b1..f99ff78cd5d3 100644 --- a/doc/ext/support_matrix.py +++ b/doc/ext/support_matrix.py @@ -269,7 +269,7 @@ class SupportMatrixDirective(rst.Directive): for key in targets: if key not in feature.implementations: raise Exception("'%s' missing in '[%s]' section" % - (target.key, section)) + (key, section)) features.append(feature)