From b800496bb4d372c20a78fcef225361adedca31c5 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 19 Aug 2012 20:16:43 -0700 Subject: [PATCH] ceph: fix cpu_profile default --- teuthology/task/ceph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index eae912f060..d70cc47e9b 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -848,7 +848,7 @@ def run_daemon(ctx, config, type_): valgrind_args = config['valgrind'][name] run_cmd.extend(teuthology.get_valgrind_args(name, valgrind_args)) - if type_ in config.get('cpu_profile'): + if type_ in config.get('cpu_profile', []): profile_path = '/tmp/cephtest/archive/log/%s.%s.prof' % (type_, id_) run_cmd.extend([ 'env', 'CPUPROFILE=%s' % profile_path ]) -- 2.39.5