18790: Updates salt-installer's arvados config to reflect upgrade notes.
[arvados.git] / lib / cloud / interfaces.go
index 7f59049681bc54ef4bd600308cb298ea297f35c8..27cf26152c2962fa1b8d9afeba34f4fad57e2922 100644 (file)
@@ -102,8 +102,11 @@ type Instance interface {
        // Replace tags with the given tags
        SetTags(InstanceTags) error
 
-       // Get recent price history, if available
-       PriceHistory() []InstancePrice
+       // Get recent price history, if available. The InstanceType is
+       // supplied as an argument so the driver implementation can
+       // account for AddedScratch cost without requesting the volume
+       // attachment information from the provider's API.
+       PriceHistory(arvados.InstanceType) []InstancePrice
 
        // Shut down the node
        Destroy() error