From 17667301f3feea72e94739847009c46007da7793 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 15 Aug 2013 12:42:47 -0500 Subject: [PATCH] Don't raise an exception if apt-key list fails --- teuthology/task/install.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teuthology/task/install.py b/teuthology/task/install.py index 3964951ad7..91b43c4a18 100644 --- a/teuthology/task/install.py +++ b/teuthology/task/install.py @@ -202,6 +202,7 @@ def _update_deb_package_list_and_install(ctx, remote, debs, config): 'sudo', 'apt-key', 'list', run.Raw('|'), 'grep', 'Ceph', ], stdout=StringIO(), + check_status=False, ) if r.stdout.getvalue().find('Ceph automated package') == -1: # if it doesn't exist, add it @@ -619,6 +620,7 @@ def _upgrade_deb_packages(ctx, config, remote, debs, branch): 'sudo', 'apt-key', 'list', run.Raw('|'), 'grep', 'Ceph', ], stdout=StringIO(), + check_status=False, ) if r.stdout.getvalue().find('Ceph automated package') == -1: # if it doesn't exist, add it -- 2.39.5