mirror of
https://github.com/ceph/ceph
synced 2025-02-22 02:27:29 +00:00
Don't raise an exception if apt-key list fails
This commit is contained in:
parent
83dd1c8bd7
commit
17667301f3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user