Use CONF for oslo_config's cfg.CONF again
In most OpenStack projects, the instance of oslo_config's cfg.CONF
is declared as CONF. This patch applies it for readability on whole
OpenStack components.
NOTE: The commit I7758a1ce86de8689fb2c5e420e042fa56c275927 missed
a few places and this patch covers them. Sorry for this mess.
Change-Id: I1a20ea8b4b7092fd8ed565f8020dbb65c39b9cf1
This commit is contained in:
@@ -674,7 +674,7 @@ def timeline(records, **kwargs):
|
||||
|
||||
@app.template_test()
|
||||
def too_old(timestamp):
|
||||
age = cfg.CONF.age_warn
|
||||
age = CONF.age_warn
|
||||
now = time.time()
|
||||
return timestamp + age < now
|
||||
|
||||
|
||||
Reference in New Issue
Block a user