From dccc0394215eac4b2bb1b21865459cc9c23d89d7 Mon Sep 17 00:00:00 2001 From: Priyanka Chatterjee Date: Fri, 27 Sep 2024 15:33:59 +0530 Subject: [PATCH] chore:update update_sql_instance database_flags variable --- pipelines/sql/update_sql_instance.fp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/pipelines/sql/update_sql_instance.fp b/pipelines/sql/update_sql_instance.fp index 3a17e7f..ac67b97 100644 --- a/pipelines/sql/update_sql_instance.fp +++ b/pipelines/sql/update_sql_instance.fp @@ -18,15 +18,9 @@ pipeline "update_sql_instance" { description = "The name of the SQL instance." } - param "database_flag_key" { + param "database_flags" { type = string - description = "The database flag to set." - optional = true - } - - param "database_flag_value" { - type = string - description = "The value for the database flag." + description = "The database flags to set in format key=value." optional = true } @@ -75,7 +69,7 @@ pipeline "update_sql_instance" { param.backup_start_time != null ? ["--backup-start-time", param.backup_start_time] : [], param.network != null ? ["--network", param.network] : [], param.disable_public_ip != null ? ["--no-assign-ip"] : [], - param.database_flag_key != null ? ["--database-flags", "${param.database_flag_key}=${param.database_flag_value}"] : []) + param.database_flags != null ? ["--database-flags", param.database_flags] : []) env = { CLOUDSDK_CORE_PROJECT = param.project_id CLOUDSDK_AUTH_ACCESS_TOKEN = credential.gcp[param.cred].access_token