Skip to content

Commit

Permalink
Also correct Run.branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
zmc committed May 1, 2014
1 parent 70440b6 commit 8922ec3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions paddles/models/jobs.py
Expand Up @@ -159,10 +159,13 @@ def set_or_update(self, json_data):
self.set_updated(v)
self.run.updated = self.updated
continue
# Correct a potentially-incorrect Run.suite value - we started
# putting the suite name in the job config on 5/1/2014
# Correct potentially-incorrect Run.suite/branch values
# We started putting the suite/branch names in the job config on
# 5/1/2014
elif key == 'suite' and self.run.suite != v:
self.run.suite = v
elif key == 'branch' and self.run.branch != v:
self.run.branch = v
if key in self.allowed_keys:
self.update_attr(key, v)
if self.__changed and 'updated' not in json_data:
Expand Down

0 comments on commit 8922ec3

Please sign in to comment.