Skip to content

Commit

Permalink
Fix variable typo in kube.deployments.added event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
FLYBYME committed Dec 3, 2023
1 parent c5cb58c commit a670f5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/mysql.servers.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,14 +374,14 @@ module.exports = {
events: {
// on new deployment updated uid for fast lookup
async "kube.deployments.added"(ctx) {
const deploymant = ctx.params.data;
const deploymant = ctx.params;

//check if the deployment name, namespace and cluster match a server
const server = await this.findEntity(ctx, {
query: {
name: deploymant.metadata.name,
namespace: deploymant.metadata.namespace,
k8sCluster: ctx.params.cluster
k8sCluster: deploymant.cluster
}
});

Expand Down

0 comments on commit a670f5a

Please sign in to comment.