-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle queries where the EC2 subPath is "/"
We were reporting 404 errors when hitting the address https://metadata.equinixmetal.net/2009-04-04/meta-data/ The trailing slash was routing us to a method that assumed subPath had an endpoint in it. So account for an empty subPath by returning metadata.ItemNames() as we would if the trailing slash was not included in the request. Signed-off-by: Scott Garman <[email protected]>
- Loading branch information
1 parent
fdaedd1
commit ae844c1
Showing
2 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
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