]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
thrashosds: fix timeout when no options are specified
authorJosh Durgin <josh.durgin@dreamhost.com>
Fri, 9 Sep 2011 17:31:08 +0000 (10:31 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Fri, 9 Sep 2011 17:31:08 +0000 (10:31 -0700)
teuthology/task/thrashosds.py

index 6e135c19b0087501fc47199245945c57b361cdac..c40126ce9fae3b6164540bb8c45530b4576416f6 100644 (file)
@@ -55,6 +55,10 @@ def task(ctx, config):
         timeout: 600
     - interactive:
     """
+    if config is None:
+        config = {}
+    assert isinstance(config, dict), \
+        'thrashosds task only accepts a dict for configuration'
     log.info('Beginning thrashosds...')
     first_mon = teuthology.get_first_mon(ctx, config)
     (mon,) = ctx.cluster.only(first_mon).remotes.iterkeys()