Skip to content

Prevent duplicate plugin registrations #3879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

kamalca
Copy link
Collaborator

@kamalca kamalca commented Jun 20, 2025

Plugins were getting registered every time the file was being imported.

Plugins were getting registered every time the file was being imported.
@squirrelsc
Copy link
Member

@LiliDeng LGTM

@squirrelsc
Copy link
Member

I'm ok with this change. But I remembered I handled the import logic, only UT may import the same module twice. The normal LISA process only import once.

@kamalca
Copy link
Collaborator Author

kamalca commented Jun 21, 2025

I'm ok with this change. But I remembered I handled the import logic, only UT may import the same module twice. The normal LISA process only import once.

@squirrelsc I’m not sure what is going on, but when I was testing the Azure Container Policy extension the Node Hook was being added nearly 3000 times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants