Skip to content

Commit

Permalink
HELLODATA-1881 - fix users
Browse files Browse the repository at this point in the history
  • Loading branch information
Slawomir Wieczorek committed Jan 13, 2025
1 parent d2ba55c commit 27fa917
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public void publishUsers() {
List<SubsystemUser> subsystemUsers = toSubsystemUsers(allUsers);
if (podUtils != null) {
V1Pod current = podUtils.currentPod().get();
UserResource userResource = new UserResource(ModuleType.AIRFLOW, this.instanceName, current.getMetadata().getNamespace(), subsystemUsers);
UserResource userResource = new UserResource(ModuleType.SFTPGO, this.instanceName, current.getMetadata().getNamespace(), subsystemUsers);
natsSenderService.publishMessageToJetStream(PUBLISH_USER_RESOURCES, userResource);
} else {
//dummy info for tests
UserResource userResource = new UserResource(ModuleType.AIRFLOW, this.instanceName, "local", subsystemUsers);
UserResource userResource = new UserResource(ModuleType.SFTPGO, this.instanceName, "local", subsystemUsers);
natsSenderService.publishMessageToJetStream(PUBLISH_USER_RESOURCES, userResource);
}
}
Expand Down

0 comments on commit 27fa917

Please sign in to comment.