lang: funcs: core: Make module names public

This is needed for when we have nested modules.
This commit is contained in:
James Shubin
2019-05-20 08:45:43 -04:00
parent d5074871c7
commit 12582e963d
35 changed files with 49 additions and 49 deletions

View File

@@ -23,7 +23,7 @@ import (
)
func init() {
facts.ModuleRegister(moduleName, "hostname", func() facts.Fact { return &HostnameFact{} }) // must register the fact and name
facts.ModuleRegister(ModuleName, "hostname", func() facts.Fact { return &HostnameFact{} }) // must register the fact and name
}
// HostnameFact is a function that returns the hostname.