From 53157c1b1528c73a07e379fff72a07a3a2803739 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 9 Oct 2023 15:58:44 -0400 Subject: [PATCH] Update RD2 preflight class_path to work-around installer errors (#7198) A recent change to CumulusCI resulted in a regression for certain custom tasks. Before this commit: ```console $ cci task run is_rd2_enabled Error: module 'tasks' has no attribute 'is_rd2_enabled' Run this command for more information about debugging errors: cci error --help ``` This resulted in an error when running preflight checks for the `enhanced-recurring-donations` plan in MetaDeploy. After: ```console $ cci task run is_rd2_enabled is_rd2_enabled Description: This preflight check ensures that Enhanced Recurring Donations is enabled Class: tasks.check_rd2_enablement.is_rd2_enabled [...] ``` Co-authored-by: James Estevez --- cumulusci.yml | 2 +- tasks/__init__.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cumulusci.yml b/cumulusci.yml index 41587b468a5..abc3df0234b 100644 --- a/cumulusci.yml +++ b/cumulusci.yml @@ -232,7 +232,7 @@ tasks: is_rd2_enabled: description: This preflight check ensures that Enhanced Recurring Donations is enabled - class_path: tasks.is_rd2_enabled + class_path: tasks.check_rd2_enablement.is_rd2_enabled group: NPSP robot: diff --git a/tasks/__init__.py b/tasks/__init__.py index c58f9b1a9ca..e69de29bb2d 100644 --- a/tasks/__init__.py +++ b/tasks/__init__.py @@ -1 +0,0 @@ -from .check_rd2_enablement import is_rd2_enabled \ No newline at end of file