Skip to content
Snippets Groups Projects
Commit 3f49784c authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Ditto for link

parent 75a2da28
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ func (d HostClasses) Lookup(ctx context.Context, name string) (fs.Node, error) {
for _, class := range classes {
if name == class {
return link.LinkPuppetClass{class}, nil
return link.PuppetClass{class}, nil
}
}
......
......@@ -6,9 +6,9 @@ import (
"os"
)
type LinkPuppetClass struct{ Classname string }
type PuppetClass struct{ Classname string }
func (LinkPuppetClass) Attr(ctx context.Context, a *fuse.Attr) error {
func (PuppetClass) Attr(ctx context.Context, a *fuse.Attr) error {
a.Inode = 0
a.Mode = os.ModeSymlink | 0o444
return nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment