tasks/thrashosds: support overrides

e.g.,

overrides:
  thrashosds:
    thrash_primary_affinity: false
...
tasks:
- install:
- ceph:
- thrashosds:
- workunit:
...

Needed for #9865

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2014-10-22 11:19:01 -07:00
parent bdbcf760d9
commit 7e41c93ed8

View File

@ -112,6 +112,8 @@ def task(ctx, config):
config = {}
assert isinstance(config, dict), \
'thrashosds task only accepts a dict for configuration'
overrides = ctx.config.get('overrides', {})
teuthology.deep_merge(config, overrides.get('thrashosds', {}))
if 'powercycle' in config: