Skip to content

Commit

Permalink
Update RD2 preflight class_path to work-around installer errors (#7198)
Browse files Browse the repository at this point in the history
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 <jestevez@salesforce.com>
  • Loading branch information
force2b and jstvz committed Oct 9, 2023
1 parent e6ab6e5 commit 53157c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cumulusci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion tasks/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from .check_rd2_enablement import is_rd2_enabled

0 comments on commit 53157c1

Please sign in to comment.