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

Function writeTempInventory

internal/plugins/ansible/runner.go:352–358  ·  view source on GitHub ↗
(inventoryText, inventoryFormat string)

Source from the content-addressed store, hash-verified

350}
351
352func writeTempInventory(inventoryText, inventoryFormat string) (path string, cleanup func(), err error) {
353 return writeTempInventoryResult(InventoryResult{
354 Source: InventorySourcePvetui,
355 Format: inventoryFormat,
356 Text: inventoryText,
357 })
358}
359
360func writeTempInventoryResult(inventory InventoryResult) (path string, cleanup func(), err error) {
361 ext := ".ini"

Callers 3

RunPingStreamMethod · 0.85
RunAdhocStreamMethod · 0.85
RunPlaybookStreamMethod · 0.85

Calls 1

writeTempInventoryResultFunction · 0.85

Tested by

no test coverage detected