Re: conversion error (on windows)
"'Nick Anderson' via help-cfengine" <[email protected]> Tue, 09 Jul 2024 13:27:30 -0500
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
ie something Like this: --- "container" data => parsejson(
execresult( "Get-NetAdapter | Convertto-json",
"powershell")); ---
It works if i for example do this: --- "container" data =>
parsejson( execresult( "Get-NetAdapter | select ifName,
Description | Convertto-json", "powershell")); ---
The output from Get-NetAdapter includes 'cimclass', which
i believe causes the crash. I could test doing a small
sample (especially the key 'cimclass') which crashes and
another one which doesn't.
This 3.21.5 and Windwos 10 home
Can you make a standalone example? Take the output of your
execresult() and just stuff it in the variable directly.
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/87plrm7759.fsf%40northern.tech.