From 861b0f434f00154d6d75a5346040014122448ec6 Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Wed, 25 Apr 2018 15:52:41 +0000 Subject: [PATCH] Reference class variable in Status This is trivial change to use an existing class variable instead of redefining a string. Change-Id: Ic4fbbc3b735a30babdfee74225975152476196e3 --- keystoneauth1/discover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystoneauth1/discover.py b/keystoneauth1/discover.py index 2e79a239..0f7cc512 100644 --- a/keystoneauth1/discover.py +++ b/keystoneauth1/discover.py @@ -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