Skip to content

Commit f486b66

Browse files
authored
Do not install collection locally in offline mode (#2926)Fixes #2922
1 parent ffefdd1 commit f486b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansiblelint/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def get_app() -> App:
353353
# fail.
354354
_perform_mockings()
355355
app.runtime.prepare_environment(
356-
install_local=True, offline=offline, role_name_check=role_name_check
356+
install_local=(not offline), offline=offline, role_name_check=role_name_check
357357
)
358358

359359
return app

0 commit comments

Comments
 (0)