Reference class variable in Status

This is trivial change to use an existing class variable instead
of redefining a string.

Change-Id: Ic4fbbc3b735a30babdfee74225975152476196e3
This commit is contained in:
Lance Bragstad 2018-04-25 15:52:41 +00:00 committed by Monty Taylor
parent 9688b7938b
commit 861b0f434f
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ class Status(object):
"""
status = raw_status.upper()
if status == 'STABLE':
status = 'CURRENT'
status = cls.CURRENT
if status not in cls.KNOWN:
status = cls.UNKNOWN
return status