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
This commit is contained in:
Matt Riedemann 2017-07-05 15:15:50 -04:00
parent 635e29433c
commit 9269d35ea8
1 changed files with 1 additions and 1 deletions

View File

@ -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)