]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
run_tasks: catch malformed task case
authorJohn Spray <jspray@redhat.com>
Wed, 2 Jul 2014 18:09:03 +0000 (19:09 +0100)
committerJohn Spray <jspray@redhat.com>
Thu, 3 Jul 2014 15:09:29 +0000 (16:09 +0100)
commit87383048d6e227dd7ad68cdd40fa2804e836dae5
treeb42c20d91f8628f0eb920839987bcdcc0b9e3d8f
parent6934bbe1f81da077075d800cfd15815e8516b234
run_tasks: catch malformed task case

If you do something like this:

- foo:
- bar:
- baz

Then catching AttributeError is necessary for giving a somewhat
friendlier error on the 'baz' where we have a string instead
of a dict.

Signed-off-by: John Spray <john.spray@redhat.com>
teuthology/run_tasks.py