mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-5752: Use pesudo job context when API dispather directly calls into orchestration flow
This commit is contained in:
parent
0965adb003
commit
a05d71a80c
@ -150,6 +150,10 @@ public class AsyncJobExecutionContext {
|
|||||||
|
|
||||||
public static AsyncJobExecutionContext getCurrentExecutionContext() {
|
public static AsyncJobExecutionContext getCurrentExecutionContext() {
|
||||||
AsyncJobExecutionContext context = s_currentExectionContext.get();
|
AsyncJobExecutionContext context = s_currentExectionContext.get();
|
||||||
|
if (context == null) {
|
||||||
|
context = registerPseudoExecutionContext(CallContext.current().getCallingAccountId(),
|
||||||
|
CallContext.current().getCallingUserId());
|
||||||
|
}
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user