]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
rgw: handle empty conf case 231/head
authorSage Weil <sage@inktank.com>
Fri, 21 Mar 2014 15:36:24 +0000 (08:36 -0700)
committerSage Weil <sage@inktank.com>
Fri, 21 Mar 2014 15:36:24 +0000 (08:36 -0700)
commit4e2f36fcd8a08b451c7813349b36fbcd4224b18f
treecb90205e6368e7a53d84e0fa78ef2a17b5af435a
parent2943267a7ecc821da903ea629bd2b88b76fd2c3d
rgw: handle empty conf case

2014-03-20T23:30:28.964 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
  File "/home/teuthworker/teuthology-firefly/teuthology/contextutil.py", line 27, in nested
    vars.append(enter())
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/teuthworker/teuthology-firefly/teuthology/task/rgw.py", line 83, in ship_config
    idle_timeout = conf.get('idle_timeout', 30)
AttributeError: 'NoneType' object has no attribute 'get'

This happens with job yamls like:

- rgw:
  - client.0

(where it is a list and not a dict of clients)

Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/task/rgw.py