Skip to content

Commit

Permalink
Fix for SDC version containing SNAPSHOT (#41)
Browse files Browse the repository at this point in the history
* Fix for SDC version containing SNAPSHOT

* Remove everything after a dash '-' from sdc_version before searching for SDC parcel
  • Loading branch information
kirtiv1 authored Jun 25, 2018
1 parent f58120e commit 8e96494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ def cm_server_not_dead(primary_node):
# The parcel is already present. Hence just distribute and activate it after refresing parcel repos.
product = 'STREAMSETS_DATACOLLECTOR'
deployment.refresh_parcel_repos()
# Remove RC from version.
version = args.sdc_version.rsplit('-RC')[0]
# Remove -RC, -SNAPSHOT etc. from version.
version = args.sdc_version.rsplit('-')[0]
cm_cluster.wait_for_parcel_stage(product=product, version=version, stage='DOWNLOADED')
sdc_parcel = cm_cluster.parcel(product=product, version=version, stage='DOWNLOADED')
sdc_parcel.distribute().activate()
Expand Down

0 comments on commit 8e96494

Please sign in to comment.