mirror of
https://github.com/rancher/os.git
synced 2025-09-25 04:37:02 +00:00
simplistic start
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
4
config/cloudinit/datasource/metadata/packet/metadata.go
Normal file → Executable file
4
config/cloudinit/datasource/metadata/packet/metadata.go
Normal file → Executable file
@@ -62,6 +62,10 @@ type MetadataService struct {
|
||||
}
|
||||
|
||||
func NewDatasource(root string) *MetadataService {
|
||||
if root == "" {
|
||||
root = DefaultAddress
|
||||
}
|
||||
|
||||
return &MetadataService{Service: metadata.NewDatasource(root, apiVersion, userdataURL, metadataPath, nil)}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user