import { set } from '@elastic/safer-lodash-set' ; import { getArgValue } from './read_argv' ; /**
 * Manually applies the specific configuration overrides we need to load the APM config.
 * Currently, only these are needed:
 *   - server.uuid
 *   - path.data
 */ export const applyConfigOverrides = ( config , argv ) => { const serverUuid = getArgValue ( argv , '--server.uuid' ) ; if ( serverUuid ) { set ( config , 'server.uuid' , serverUuid ) ; } const dataPath = getArgValue ( argv , '--path.data' ) ; if ( dataPath ) { set ( config , 'path.data' , dataPath ) ; } } ;