Skip to content

Commit

Permalink
Try only importing safeload
Browse files Browse the repository at this point in the history
  • Loading branch information
kpollich committed Dec 6, 2023
1 parent 76c75b8 commit 6bb7594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/fleet/common/services/output_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import yaml from 'js-yaml';
import { safeLoad } from 'js-yaml';

import { getFlattenedObject } from '@kbn/std';

Expand Down Expand Up @@ -47,7 +47,7 @@ export function outputYmlIncludesReservedPerformanceKey(configYml: string) {
return false;
}

const parsedYml = yaml.safeLoad(configYml);
const parsedYml = safeLoad(configYml);

if (!isObject(parsedYml)) {
return RESERVED_CONFIG_YML_KEYS.some((key) => parsedYml.includes(key));
Expand Down

0 comments on commit 6bb7594

Please sign in to comment.