MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / NormalizeInventoryFormat

Function NormalizeInventoryFormat

internal/plugins/ansible/inventory.go:325–334  ·  view source on GitHub ↗

NormalizeInventoryFormat validates and canonicalizes inventory format.

(format string)

Source from the content-addressed store, hash-verified

323
324// NormalizeInventoryFormat validates and canonicalizes inventory format.
325func NormalizeInventoryFormat(format string) string {
326 switch strings.ToLower(strings.TrimSpace(format)) {
327 case InventoryFormatINI:
328 return InventoryFormatINI
329 case InventoryFormatYAML:
330 return InventoryFormatYAML
331 default:
332 return InventoryFormatYAML
333 }
334}
335
336// NormalizeInventoryStyle validates and canonicalizes inventory style.
337func NormalizeInventoryStyle(style string) string {

Callers 3

BuildInventoryWithFormatFunction · 0.85
writeTempInventoryResultFunction · 0.85

Calls

no outgoing calls

Tested by 1