Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/java/io/kestra/plugin/git/SyncFlows.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ protected Flow simulateResourceWrite(RunContext runContext, String renderedNames
return null;
}

return flowService(runContext).importFlow(runContext.flowInfo().tenantId(), SyncFlows.replaceNamespace(renderedNamespace, uri, inputStream), true);
return flowService(runContext).importFlow(runContext.tenantId(), SyncFlows.replaceNamespace(renderedNamespace, uri, inputStream), true);
}

@Override
Expand All @@ -218,7 +218,7 @@ protected Flow writeResource(RunContext runContext, String renderedNamespace, UR

String flowSource = SyncFlows.replaceNamespace(renderedNamespace, uri, inputStream);

return flowService(runContext).importFlow(runContext.flowInfo().tenantId(), flowSource);
return flowService(runContext).importFlow(runContext.tenantId(), flowSource);
}

private static String replaceNamespace(String renderedNamespace, URI uri, InputStream inputStream) throws IOException {
Expand Down Expand Up @@ -264,10 +264,10 @@ protected SyncResult wrapper(RunContext runContext, String renderedGitDirectory,
@Override
protected List<Flow> fetchResources(RunContext runContext, String renderedNamespace) {
if (this.includeChildNamespaces) {
return flowService(runContext).findByNamespacePrefix(runContext.flowInfo().tenantId(), renderedNamespace);
return flowService(runContext).findByNamespacePrefix(runContext.tenantId(), renderedNamespace);
}

return flowService(runContext).findByNamespace(runContext.flowInfo().tenantId(), renderedNamespace);
return flowService(runContext).findByNamespace(runContext.tenantId(), renderedNamespace);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void namespaceAccessGuard(RunContext runContext, String namespaceToAccess
FlowService flowService = ((DefaultRunContext)runContext).getApplicationContext().getBean(FlowService.class);
RunContext.FlowInfo flowInfo = runContext.flowInfo();
flowService.checkAllowedNamespace(
runContext.flowInfo().tenantId(),
runContext.tenantId(),
runContext.render(namespaceToAccess),
flowInfo.tenantId(),
flowInfo.namespace()
Expand Down
Loading