Moving yq to be taken from environment

This commit is contained in:
Ned Wright 2024-02-28 15:04:14 +00:00
parent eb509dfa85
commit b795661328

View File

@ -58,7 +58,7 @@ Maybe<T>
PolicyMakerUtils::openFileAsJson(const string &path)
{
auto maybe_file_as_json = Singleton::Consume<I_ShellCmd>::by<LocalPolicyMgmtGenerator>()->getExecOutput(
getFilesystemPathConfig() + "/bin/yq " + path + " -o json"
getFilesystemPathConfig() + "/bin/yq eval " + path + " -o json"
);
if (!maybe_file_as_json.ok()) {