fix(cli): read metabase status url from api_url

`ktx status` was probing `url` / `base_url` on metabase connections, but
ktx.yaml stores it as `api_url`, so the field always reported "url not
set". Read `api_url` directly and align the warning text with the actual
key.
This commit is contained in:
Andrey Avtomonov 2026-05-14 16:12:30 +02:00
parent aa0e2ad15b
commit 4da6fb117b

View file

@ -281,9 +281,9 @@ function buildConnectionStatus(
return warn('repoUrl not set', 'Rerun `ktx setup`');
}
case 'metabase': {
const url = (conn as Record<string, unknown>).url ?? (conn as Record<string, unknown>).base_url;
const url = (conn as Record<string, unknown>).api_url;
if (typeof url === 'string' && url.length > 0) return ok(`url: ${url}`);
return warn('url not set', 'Rerun `ktx setup`');
return warn('api_url not set', 'Rerun `ktx setup`');
}
case 'looker':
case 'lookml': {