-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imdsclient: return options for all IMDS fetch functions
This commit changes the return type for the IMDS fetch functions to options returning None when a 404 is encountered. This makes it easier for the caller to decide what to do when a 404 occurs and is closer to the behavior before imdsclient was written. `fetch_identity_document` and its associated `IdentityDocument` struct were removed in favor of separate `fetch_region` and `fetch_instance_type` functions. Instance-type is now fetched via IMDS meta-data as opposed to the identity document. We are returning to the original behavior as it is possible that the identity document can be absent in certain situations. Changes were also made to shibaken, pluto, and early-boot-config to accommodate the options detailed above.
- Loading branch information
Showing
6 changed files
with
99 additions
and
74 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters