mirror of https://github.com/apache/cloudstack.git
Fixed UserContext initialization - got broken by unittest
This commit is contained in:
parent
95449da4be
commit
629556c708
|
|
@ -16,12 +16,13 @@
|
|||
// under the License.
|
||||
package com.cloud.user;
|
||||
|
||||
import com.cloud.server.ManagementService;
|
||||
import com.cloud.utils.component.ComponentLocator;
|
||||
|
||||
public class UserContext {
|
||||
|
||||
private static ThreadLocal<UserContext> s_currentContext = new ThreadLocal<UserContext>();
|
||||
private static final ComponentLocator locator = ComponentLocator.getCurrentLocator();
|
||||
private static final ComponentLocator locator = ComponentLocator.getLocator(ManagementService.Name);
|
||||
private static final AccountService _accountMgr = locator.getManager(AccountService.class);
|
||||
|
||||
private long userId;
|
||||
|
|
|
|||
Loading…
Reference in New Issue