Commit fd10af1
Fix SAPQuotaEngine cache client initialization
The SAPQuotaEngine instance is created as a module variable
(nova.quota.QUOTAS), so the CONF might have not been initialized
at the point when SAPQuotaEngine.__init__ is called.
Similarily to how the self._driver is initialised, we are now
initializing the self._cache client outside of the constructor,
making sure the CONF is also initialized at that point.
This fixes the issues where DictCacheBackend was used by the
SAPQuotaEngine, instead of the configured Memcached backend.
Change-Id: Iceba3c7820f9c6b9255ef6e00a9f49ed4677c12f1 parent d1a45a5 commit fd10af1
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1117 | 1117 | | |
1118 | 1118 | | |
1119 | 1119 | | |
1120 | | - | |
1121 | | - | |
| 1120 | + | |
1122 | 1121 | | |
1123 | 1122 | | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
1124 | 1131 | | |
1125 | 1132 | | |
1126 | 1133 | | |
| |||
0 commit comments