]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Don't raise an exception if apt-key list fails
authorZack Cerza <zack@cerza.org>
Thu, 15 Aug 2013 17:42:47 +0000 (12:42 -0500)
committerZack Cerza <zack@cerza.org>
Thu, 15 Aug 2013 17:42:47 +0000 (12:42 -0500)
teuthology/task/install.py

index 3964951ad790289edc721ec3578c1a8265d50c35..91b43c4a181b9ad1e6731e832a4c3887c6f587d5 100644 (file)
@@ -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