While there, also fix a typo
Signed-off-by: Klaus Aehlig <[email protected]>
---
lib/cmdlib/common.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/cmdlib/common.py b/lib/cmdlib/common.py
index e072211..49d0d5b 100644
--- a/lib/cmdlib/common.py
+++ b/lib/cmdlib/common.py
@@ -1212,9 +1212,10 @@ def CheckIpolicyVsDiskTemplates(ipolicy,
enabled_disk_templates):
allowed_disk_templates = ipolicy[constants.IPOLICY_DTS]
not_enabled = set(allowed_disk_templates) - set(enabled_disk_templates)
if not_enabled:
- raise errors.OpPrereqError("The following disk template are allowed"
+ raise errors.OpPrereqError("The following disk templates are allowed"
" by the ipolicy, but not enabled on the"
- " cluster: %s" % utils.CommaJoin(not_enabled))
+ " cluster: %s" % utils.CommaJoin(not_enabled),
+ errors.ECODE_INVAL)
def CheckDiskAccessModeValidity(parameters):
--
2.1.0.rc2.206.gedb03e5