Rename API_TIMEOUT and API_PARALLEL vars
API_TIMEOUT and API_PARALLEL, both of them are for template generator and the naming looks too generic. This is not good because they will be global under django. It's better to rename them to indicate both parameters for heat-dashboard. Change-Id: I1ad610fd796d158174ae9cb855bd5d8da72bc1f8 Closes-Bug: #1750930
This commit is contained in:
parent
981e4e38de
commit
7732884d37
@ -22,12 +22,12 @@ from heat_dashboard import api as heat_api
|
||||
|
||||
|
||||
try:
|
||||
API_TIMEOUT = settings.API_TIMEOUT
|
||||
API_TIMEOUT = settings.HEAT_TEMPLATE_GENERATOR_API_TIMEOUT
|
||||
except AttributeError:
|
||||
API_TIMEOUT = 60
|
||||
|
||||
try:
|
||||
API_PARALLEL = settings.API_PARALLEL
|
||||
API_PARALLEL = settings.HEAT_TEMPLATE_GENERATOR_API_PARALLEL
|
||||
except AttributeError:
|
||||
API_PARALLEL = 2
|
||||
|
||||
|
@ -34,7 +34,7 @@ settings.POLICY_FILES.update({
|
||||
# })
|
||||
|
||||
# Template Generator retrieve options API TIMEOUT
|
||||
API_TIMEOUT = 60
|
||||
HEAT_TEMPLATE_GENERATOR_API_TIMEOUT = 60
|
||||
|
||||
# Template Generator retrieve options API PARALLEL LEVEL
|
||||
API_PARALLEL = 2
|
||||
HEAT_TEMPLATE_GENERATOR_API_PARALLEL = 2
|
||||
|
Loading…
Reference in New Issue
Block a user