mirror of
https://github.com/rancher/os.git
synced 2025-06-29 08:16:49 +00:00
Don't keep retrying if we can't get to the metadata, we're not doing anything to change the result
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
parent
c62c05773c
commit
2de5daffe9
@ -76,6 +76,11 @@ func NewDatasource(root string) *MetadataService {
|
|||||||
return &MetadataService{Service: metadata.NewDatasource(root, apiVersion, userdataURL, metadataPath, nil)}
|
return &MetadataService{Service: metadata.NewDatasource(root, apiVersion, userdataURL, metadataPath, nil)}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ms MetadataService) AvailabilityChanges() bool {
|
||||||
|
// TODO: if it can't find the network, maybe we can start it?
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
// Parse IPv4 netmask written in IP form (e.g. "255.255.255.0").
|
// Parse IPv4 netmask written in IP form (e.g. "255.255.255.0").
|
||||||
func ipmask(addr *Address) string {
|
func ipmask(addr *Address) string {
|
||||||
ip := net.ParseIP(addr.IPAddress)
|
ip := net.ParseIP(addr.IPAddress)
|
||||||
|
Loading…
Reference in New Issue
Block a user