From f125a39bb89aa966e7bb2c7de3003d720c69d1c5 Mon Sep 17 00:00:00 2001
From: Cameron Thornton <camthornton@google.com>
Date: Tue, 5 Mar 2024 13:29:41 -0600
Subject: [PATCH] Fix wrong variable in override logic (#10125)

---
 mmv1/compiler.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mmv1/compiler.rb b/mmv1/compiler.rb
index 9b2160026bc4..2e4bc8b5b3ce 100755
--- a/mmv1/compiler.rb
+++ b/mmv1/compiler.rb
@@ -199,7 +199,7 @@
       Dir["#{ovr_prod_dir}/*"].each do |override_path|
         next if File.basename(override_path) == 'product.yaml' \
         || File.extname(override_path) != '.yaml' \
-        || File.basename(file_path).include?('go_')
+        || File.basename(override_path).include?('go_')
 
         file_path = File.join(product_name, File.basename(override_path))
         res_yaml = if File.exist?(file_path)