Don't raise an exception if apt-key list fails

This commit is contained in:
Zack Cerza 2013-08-15 12:42:47 -05:00
parent 83dd1c8bd7
commit 17667301f3

View 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