]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Further clarify 'too many values to unpack' error.
authorWarren Usui <warren.usui@inktank.com>
Wed, 7 May 2014 21:05:56 +0000 (14:05 -0700)
committerWarren Usui <warren.usui@inktank.com>
Thu, 8 May 2014 17:57:06 +0000 (10:57 -0700)
commit6fbf98bb0c08071c9fc98a5a3076d5c7e3b10997
tree004e08bb74160cffc62febca053ef89119954f7b
parentbca32ef54b3acce295b2095fb449c6e3cc4c6050
Further clarify 'too many values to unpack' error.

Many errors in yaml configurations cause ValueError to get thrown
with the message 'too many values to unpack.'  A previously reverted
change tried to handle all these situations and print an appropriate
message.

The current behavior of throwing the ValueError exception and exiting
is probably what we still want in these cases.  So instead of handling
the error, the code now checks for the exception at the top-most call
and displays appropriate messages in log.error and in the ctx.summary
data itself.

Fixes: 7510
Signed-off-by: Warren Usui <warren.usui@inktank.com>
teuthology/run_tasks.py