Skip to content

Commit

Permalink
Make Suggested fix cumulusci/tasks/salesforce/check_components.py
Browse files Browse the repository at this point in the history
Co-authored-by: James Estevez <[email protected]>
  • Loading branch information
vsbharath and jstvz authored Oct 8, 2024
1 parent 21fe76a commit c2523c1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions cumulusci/tasks/salesforce/check_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ class CheckComponents(BaseSalesforceTask):

def _init_options(self, kwargs):
super(CheckComponents, self)._init_options(kwargs)
if "paths" in self.options:
if "name" in self.options:
raise TaskOptionsError("Please provide either --paths or --name")
elif "name" not in self.options:
raise TaskOptionsError(
"This task requires a plan/flow name or paths options. pass --paths or --name options"
)
if "paths" in self.options and "name" in self.options:
raise TaskOptionsError("Please provide either --paths or --name")
if "paths" not in self.options and "name" not in self.options:
raise TaskOptionsError(
"This task requires a plan/flow name or paths options. Pass --paths or --name options"
)

def _run_task(self):
# Check if paths are provided in options. Assuming to only check for those paths
Expand Down

0 comments on commit c2523c1

Please sign in to comment.