Skip to content

Commit 9265bdb

Browse files
committed
qa/tasks: Initialize 'monitoring_profiles' spec to an empty dict
Initialize 'monitoring_profiles' to an empty python dictionary instead of 'None' to prevent the cbt task from failing due to the TypeError exception when attempting to iterate a 'NoneType'. The bug was introduced as part of ceph#51438 and commit e174c6e. Signed-off-by: Sridhar Seshasayee <[email protected]> Fixes: https://tracker.ceph.com/issues/66799
1 parent cbc6d66 commit 9265bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/tasks/cbt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def generate_cbt_config(self):
6464
(remote.ssh.get_transport().getpeername() for (remote, role_list) in remotes_and_roles)]
6565
benchmark_config['cosbench']['auth'] = "username=cosbench:operator;password=intel2012;url=http://%s:80/auth/v1.0;retry=9" %(ips[0])
6666
client_endpoints_config = self.config.get('client_endpoints', None)
67-
monitoring_profiles = self.config.get('monitoring_profiles', None)
67+
monitoring_profiles = self.config.get('monitoring_profiles', {})
6868

6969
return dict(
7070
cluster=cluster_config,

0 commit comments

Comments
 (0)