Skip to content

Commit 5ddf1b5

Browse files
committed
fix instance types caching
1 parent 4b6d457 commit 5ddf1b5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pkg/instancetypes/instancetypes.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@ func LoadFromOrNew(directoryPath string, region string, ttl time.Duration, ec2Cl
8181
itCache = cache.New(0, 0)
8282
}
8383
return &Provider{
84-
Region: region,
85-
DirectoryPath: expandedDirPath,
86-
ec2Client: ec2Client,
87-
cache: itCache,
88-
logger: log.New(io.Discard, "", 0),
84+
Region: region,
85+
DirectoryPath: expandedDirPath,
86+
ec2Client: ec2Client,
87+
cache: itCache,
88+
FullRefreshTTL: ttl,
89+
logger: log.New(io.Discard, "", 0),
8990
}, nil
9091
}
9192

0 commit comments

Comments
 (0)