Fixed tense consistency (used past) in statuses

In several places in Watcher, there are statuses which corresponds
to a status in the respective life cycle. There were used past tense
everywhere, except "SUCCESS" which was written in present tense.

So I searched for all the occurences of this state, and replaced them
with their past tense form.

Change-Id: Ic41def96d1a608da06a1e394e24704d4f06ab32a
Closes-Bug: #1520276
This commit is contained in:
Gábor Antal
2015-11-27 18:53:34 +01:00
parent a809b8d52c
commit 6e1e445e55
13 changed files with 24 additions and 23 deletions

View File

@@ -75,8 +75,9 @@ class TriggerAuditCommand(BaseDecisionEngineCommand):
planner = DefaultPlanner()
planner.schedule(request_context, audit.id, solution)
# 7 - change status to SUCCESS and notify
self.update_audit(request_context, audit_uuid, AuditStatus.SUCCESS)
# 7 - change status to SUCCEEDED and notify
self.update_audit(request_context, audit_uuid,
AuditStatus.SUCCEEDED)
except Exception as e:
self.update_audit(request_context, audit_uuid, AuditStatus.FAILED)
LOG.error("Execute audit command {0} ".format(unicode(e)))