Skip to content

Commit

Permalink
Merge pull request #8 from muselab-d2x/feature/fix-2gp-creation-for-o…
Browse files Browse the repository at this point in the history
…ld-api

Fix issue with 2GP package uploads for packages with API version older than 52.0
  • Loading branch information
jlantz authored Mar 19, 2024
2 parents 959acab + 739908b commit 58c7dab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cumulusci/tasks/create_package_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class CreatePackageVersion(BaseSalesforceApiTask):
"Defaults to False."
},
}
api_version = "52.0"

def _init_options(self, kwargs):
super()._init_options(kwargs)
Expand Down Expand Up @@ -199,7 +200,7 @@ def _init_task(self):
self.tooling = get_simple_salesforce_connection(
self.project_config,
get_devhub_config(self.project_config),
api_version=self.project_config.project__package__api_version,
api_version=self.api_version,
base_url="tooling",
)
self.context = TaskContext(self.org_config, self.project_config, self.logger)
Expand Down

0 comments on commit 58c7dab

Please sign in to comment.