|
|
|
@ -32,8 +32,9 @@ func (m *Zones) scanDirectory(_ *ScanOptions) error {
|
|
|
|
|
for _, e := range entries { |
|
|
|
|
if e.IsDir() { |
|
|
|
|
z := &Zone{ |
|
|
|
|
zones: m, |
|
|
|
|
Name: e.Name(), |
|
|
|
|
zones: m, |
|
|
|
|
logger: m, |
|
|
|
|
Name: e.Name(), |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if err := z.scan(); err != nil { |
|
|
|
@ -132,8 +133,9 @@ func (z *Zone) scan() error {
|
|
|
|
|
for _, e := range entries { |
|
|
|
|
if e.IsDir() { |
|
|
|
|
m := &Machine{ |
|
|
|
|
zone: z, |
|
|
|
|
Name: e.Name(), |
|
|
|
|
zone: z, |
|
|
|
|
logger: z, |
|
|
|
|
Name: e.Name(), |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if err := m.init(); err != nil { |
|
|
|
|