mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
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:
parent
bdbcf760d9
commit
7e41c93ed8
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user