mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
fix(benchmark): Fix args formatting & validate scaling mode env vars (#10766)
Co-authored-by: Cornelius Suermann <cornelius@n8n.io>
This commit is contained in:
@@ -10,5 +10,11 @@
|
||||
export function flagsObjectToCliArgs(flags) {
|
||||
return Object.entries(flags)
|
||||
.filter(([, value]) => value !== undefined)
|
||||
.map(([key, value]) => `--${key}=${value}`);
|
||||
.map(([key, value]) => {
|
||||
if (typeof value === 'string' && value.includes(' ')) {
|
||||
return `--${key}="${value}"`;
|
||||
} else {
|
||||
return `--${key}=${value}`;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user