Skip to content

Commit

Permalink
Community: Allow using beta from push item
Browse files Browse the repository at this point in the history
This commit changes the community workflow to enrich a push item with
"beta" if either the CLI argument `--beta` is passed or the incoming
push item release type is marked as `beta`.

Refers to SPSTRAT-367
  • Loading branch information
JAVGan committed Aug 29, 2024
1 parent c749b78 commit 0a3b8c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pubtools/_marketplacesvm/tasks/community_push/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,10 @@ def enrich_mapped_items(self, mapped_items: List[MappedVMIPushItem]) -> List[Enr

pi = mapped_item.get_push_item_for_marketplace(storage_account)
log.debug("Mapped push item for %s: %s", storage_account, pi)
beta = self.args.beta or str(pi.release.type) == "beta"

for dest in destinations:
epi = enrich_push_item(
pi, dest, beta=self.args.beta, require_bc=self._REQUIRE_BC
)
epi = enrich_push_item(pi, dest, beta=beta, require_bc=self._REQUIRE_BC)
log.debug("Enriched push item for %s: %s", storage_account, epi)

# SAP and RHEL-HA images are expected to be
Expand Down

0 comments on commit 0a3b8c9

Please sign in to comment.