potiuk commented on a change in pull request #17682:
URL: https://github.com/apache/airflow/pull/17682#discussion_r691204097
##########
File path: airflow/cli/commands/provider_command.py
##########
@@ -68,10 +70,10 @@ def hooks_list(args):
output=args.output,
mapper=lambda x: {
"connection_type": x[0],
- "class": x[1].connection_class,
- "conn_id_attribute_name": x[1].connection_id_attribute_name,
- 'package_name': x[1].package_name,
- 'hook_name': x[1].hook_name,
+ "class": x[1].hook_class_name if x[1] else ERROR_IMPORTING_HOOK,
Review comment:
This is needed in case w lazily import hook and it turns to be
non-importable - i this case we get None as Hook Info.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]