aboutsummaryrefslogtreecommitdiffstats
path: root/c_init.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c_init.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_init.go b/c_init.go
index d5af2e8..7a1293a 100644
--- a/c_init.go
+++ b/c_init.go
@@ -93,8 +93,8 @@ func c_recurse_data_dir(dir string, root string, lhost *HostList) {
if file.IsDir() == true {
c_recurse_data_dir(dir + file.Name() + "/", root, lhost)
} else if filepath.Ext(file.Name()) == ".yml" {
- fmt.Println(dir + file.Name())
host := c_read_yaml_file(root + dir + file.Name())
+ host.Path = dir + file.Name()[0:len(file.Name()) - 4]
lhost.add_back(host)
}
}