Fixes #2654 - Rewrite master as production when only one environment is found(cherry picked from commit 1c60be634d26163cc7fe43f5adad1f9f75c3309d)
Fixes #2654 - Rewrite master as production when only one environment is found
(cherry picked from commit 1c60be634d26163cc7fe43f5adad1f9f75c3309d)