From a0de08e1d3c45f6bb5b7338bfb449a306b31d7b3 Mon Sep 17 00:00:00 2001 From: Michelle Nguyen Date: Thu, 14 Apr 2022 16:42:37 -0700 Subject: [PATCH] Fix plugin load_db script Summary: Query was broken because of a missing field in the query params. Test Plan: Ran the job on OSS cloud, verified that new TLS flag properly gets loaded Reviewers: vihang Reviewed By: vihang Signed-off-by: Michelle Nguyen Differential Revision: https://phab.corp.pixielabs.ai/D11234 --- src/cloud/plugin/load_db/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cloud/plugin/load_db/main.go b/src/cloud/plugin/load_db/main.go index 1a115b4bc09..fd12e23af3e 100644 --- a/src/cloud/plugin/load_db/main.go +++ b/src/cloud/plugin/load_db/main.go @@ -171,7 +171,7 @@ func addConfigs(plugin *controllers.Plugin, retention *controllers.RetentionPlug insertRetention := `INSERT INTO data_retention_plugin_releases (plugin_id, version, configurations, documentation_url, default_export_url, allow_custom_export_url, preset_scripts, allow_insecure_tls) - VALUES ($1, $2, $3, $4, $5, $6, $7)` + VALUES ($1, $2, $3, $4, $5, $6, $7, $8)` _, err = db.Exec(insertRetention, plugin.ID, plugin.Version, retention.Configurations, retention.DocumentationURL, retention.DefaultExportURL, retention.AllowCustomExportURL, retention.PresetScripts, retention.AllowInsecureTLS,