Skip to content
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

Fix environment param in smart proxies controller #413

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

Conversation

mtancoigne
Copy link

Hello!

We noticed an issue in the way environments parameter is used in the proxies controller:
routes /api/environments/:environment/ handles environment name as :environment param, while /api/environments/:environment/smart_proxies/:smart_proxy_id/import_puppetclasses searches for a numerical identifier.

This leads to all the environments being imported when a name is specified.

To stay consistent, the fix uses the same method as the one used on /api/environments/:environment/ to find the environment.

@mtancoigne mtancoigne force-pushed the fix-environment-param branch from 5af0a34 to f8a53c7 Compare December 12, 2024 14:53
@neomilium
Copy link

@ekohl Could you unlock the CI run? plz

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

Successfully merging this pull request may close these issues.

2 participants