forked from PelicanPlatform/pelican
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to use new Caps struct but still handle old JSON from Director
This change fixes the stuff I broke in commit ba186d2 by handling previously- unconsidered backwards compatibility issues. Now, unmarshalling the NSAdV2 struct will correctly populate capabilities even if the source JSON uses the old style of capabilities. This also fixes the capabilities displayed for each origin at the Director.
- Loading branch information
1 parent
11e6978
commit 5d8af33
Showing
2 changed files
with
108 additions
and
6 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