diff options
author | Joseph Snyder <joe.snyder@kitware.com> | 2021-12-22 10:15:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-22 16:15:49 +0100 |
commit | 34873f5fe72ca244df63307b4a19efea42f2dac3 (patch) | |
tree | b49081f58738c5f7f577a2f9266db74690cfeab7 /COPYRIGHT | |
parent | 522a7c8ee0d51f92aa8cd685f378d54735a5307e (diff) | |
download | spack-34873f5fe72ca244df63307b4a19efea42f2dac3.tar.gz spack-34873f5fe72ca244df63307b4a19efea42f2dac3.tar.bz2 spack-34873f5fe72ca244df63307b4a19efea42f2dac3.tar.xz spack-34873f5fe72ca244df63307b4a19efea42f2dac3.zip |
Use consistent method of checking for presence of info in connection (#27694)
Fixes #27652
Ensure that mirror's to_dict function returns a syaml_dict object for all code
paths.
Switch to using the .get function for accessing the potential information from
the S3 mirror objects. If the key is not there, it will gracefully return
None instead of failing with a KeyError
Additionally, check that the connection object is a dictionary before trying
to "get" from it.
Add a test for the capturing of the new S3 information.
Diffstat (limited to 'COPYRIGHT')
0 files changed, 0 insertions, 0 deletions