3030from ..ctl .object import app as object_app
3131from ..ctl .render import list_jinja2_transforms , print_template_errors
3232from ..ctl .repository import app as repository_app
33- from ..ctl .repository import get_repository_config
33+ from ..ctl .repository import find_repository_config_file , get_repository_config
3434from ..ctl .schema import app as schema_app
3535from ..ctl .transform import list_transforms
3636from ..ctl .utils import (
@@ -260,7 +260,7 @@ async def render(
260260 """Render a local Jinja2 Transform for debugging purpose."""
261261
262262 variables_dict = parse_cli_vars (variables )
263- repository_config = get_repository_config (Path ( config . INFRAHUB_REPO_CONFIG_FILE ))
263+ repository_config = get_repository_config (find_repository_config_file ( ))
264264
265265 if list_available or not transform_name :
266266 list_jinja2_transforms (config = repository_config )
@@ -270,7 +270,7 @@ async def render(
270270 try :
271271 transform_config = repository_config .get_jinja2_transform (name = transform_name )
272272 except KeyError as exc :
273- console .print (f'[red]Unable to find "{ transform_name } " in { config . INFRAHUB_REPO_CONFIG_FILE } ' )
273+ console .print (f'[red]Unable to find "{ transform_name } " in repository config file ' )
274274 list_jinja2_transforms (config = repository_config )
275275 raise typer .Exit (1 ) from exc
276276
@@ -310,7 +310,7 @@ def transform(
310310 """Render a local transform (TransformPython) for debugging purpose."""
311311
312312 variables_dict = parse_cli_vars (variables )
313- repository_config = get_repository_config (Path ( config . INFRAHUB_REPO_CONFIG_FILE ))
313+ repository_config = get_repository_config (find_repository_config_file ( ))
314314
315315 if list_available or not transform_name :
316316 list_transforms (config = repository_config )
@@ -469,7 +469,7 @@ def info( # noqa: PLR0915
469469 pretty_model = Pretty (client .config .model_dump (), expand_all = True )
470470 layout ["client_info" ].update (Panel (pretty_model , title = "Client Info" ))
471471
472- # Infrahub information planel
472+ # Infrahub information panel
473473 infrahub_info = Table (show_header = False , box = None )
474474 if info ["user_info" ]:
475475 infrahub_info .add_row ("User:" , info ["user_info" ]["AccountProfile" ]["display_label" ])
0 commit comments