Skip to content

Commit

Permalink
fix build_result is None (#1631)
Browse files Browse the repository at this point in the history
Signed-off-by: Feng Huang <[email protected]>
  • Loading branch information
BumbleFeng authored Jun 11, 2021
1 parent 41c296b commit 4f9dcbd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions reconcile/utils/saasherder.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,8 +941,10 @@ def get_upstream_jobs_diff_saas_file(self, saas_file, dry_run,
key = f"{saas_file_name}/{rt_name}/{cluster_name}/" + \
f"{namespace_name}/{env_name}/{instance_name}/{job_name}"
state_build_result = self.state.get(key, None)
# skip if there is no change in job state
if last_build_result == state_build_result:
# skip if last_build_result is incomplete or
# there is no change in job state
if last_build_result['result'] is None or \
last_build_result == state_build_result:
continue
# don't trigger if this is the first time
# this target is being deployed.
Expand Down

0 comments on commit 4f9dcbd

Please sign in to comment.