diff --git a/client/src/pages/Admin/Inventory/index.tsx b/client/src/pages/Admin/Inventory/index.tsx index 693a9a06..fa8b3064 100644 --- a/client/src/pages/Admin/Inventory/index.tsx +++ b/client/src/pages/Admin/Inventory/index.tsx @@ -112,7 +112,7 @@ const Inventory: React.FC = () => { setTerminal({ target: [target], isOpen: true, - command: '_installAgent', + quickRef: 'installAgent', }); }; const onDeleteNewDevice = async () => { diff --git a/server/src/modules/ansible/utils/ExtraVars.ts b/server/src/modules/ansible/utils/ExtraVars.ts index d8dd162f..a454c2a6 100644 --- a/server/src/modules/ansible/utils/ExtraVars.ts +++ b/server/src/modules/ansible/utils/ExtraVars.ts @@ -42,14 +42,17 @@ async function findValueOfExtraVars( logger.error( `[INTEGRATION][ANSIBLE] - findValueOfExtraVars - ExtraVar not found : ${e.extraVar}`, ); - throw new Error('ExtraVars value not found !'); + if (!e.local) { + throw new Error('ExtraVars value not found !'); + } + } else { + substitutedExtraVars.push({ + extraVar: e.extraVar, + value: value || undefined, + required: e.required, + canBeOverride: e.canBeOverride, + }); } - substitutedExtraVars.push({ - extraVar: e.extraVar, - value: value || undefined, - required: e.required, - canBeOverride: e.canBeOverride, - }); } logger.debug(substitutedExtraVars); return substitutedExtraVars; diff --git a/shared-lib/src/types/api.ts b/shared-lib/src/types/api.ts index 1d5c9c0c..826af175 100644 --- a/shared-lib/src/types/api.ts +++ b/shared-lib/src/types/api.ts @@ -547,6 +547,7 @@ export type ExtraVar = { value?: string; required?: boolean; canBeOverride?: boolean; + local?: boolean; }; export type Image = {