Commit accbf5e3 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Nicer formatting for group query error



Before this patc the message would look like “Some groups do not exist:
[u'foo', u'bar']”, now it's “Some groups do not exist: foo, bar”.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 69d1b79d
......@@ -10270,7 +10270,8 @@ class _GroupQuery(_QueryBase):
missing.append(name)
if missing:
raise errors.OpPrereqError("Some groups do not exist: %s" % missing,
raise errors.OpPrereqError("Some groups do not exist: %s" %
utils.CommaJoin(missing),
errors.ECODE_NOENT)
def DeclareLocks(self, lu, level):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment