Skip to content

Commit 76e451e

Browse files
inventory warning logs
1 parent 208ce02 commit 76e451e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pkg/plugins/inventory.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,16 @@ func (pm *PluginManager) parseAnsibleInventoryOutput(output []byte) (*PluginInve
264264
Name: hostName,
265265
Vars: hostVars,
266266
}
267+
} else {
268+
common.LogWarn(fmt.Sprintf("Key %s for host %s is not a map", hostName, hostName), map[string]interface{}{
269+
"hostvars": hostvars,
270+
})
267271
}
268272
}
273+
} else {
274+
common.LogWarn("Meta hostvars is not a map", map[string]interface{}{
275+
"hostvars": hostvars,
276+
})
269277
}
270278
}
271279
}

0 commit comments

Comments
 (0)