mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-06 00:05:21 -04:00
config: fix fetcher parse azure sev-snp version (#1911)
This commit is contained in:
parent
ab74730fd7
commit
4f63481b7d
4 changed files with 23 additions and 13 deletions
|
@ -92,7 +92,7 @@ func runCmd(cmd *cobra.Command, _ []string) error {
|
|||
}
|
||||
var uploadDate time.Time
|
||||
if dateStr != "" {
|
||||
uploadDate, err = time.Parse("2006-01-01-01-01", dateStr)
|
||||
uploadDate, err = time.Parse(attestationconfigapi.VersionFormat, dateStr)
|
||||
if err != nil {
|
||||
return fmt.Errorf("parsing date: %w", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue