Skip to content

Commit

Permalink
EDSF-374 Verify that required=True in ArgumentParser works
Browse files Browse the repository at this point in the history
  • Loading branch information
linda.nasredin committed Nov 1, 2023
1 parent 5cc352f commit 333c9a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modules/aws/sonar-upgrader/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ locals {
run_preflight_validations = var.run_preflight_validations
run_upgrade = var.run_upgrade
run_postflight_validations = var.run_postflight_validations
clean_old_deployments = var.clean_old_deployments
# clean_old_deployments = var.clean_old_deployments
stop_on_failure = var.stop_on_failure
tarball_location = jsonencode(var.tarball_location)
})
Expand Down
1 change: 0 additions & 1 deletion modules/aws/sonar-upgrader/provision_script.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ PYTHONPATH=${path}/python_upgrader python3 -u -m upgrade.main \
--run_preflight_validations "${run_preflight_validations}" \
--run_upgrade "${run_upgrade}" \
--run_postflight_validations "${run_postflight_validations}" \
--clean_old_deployments "${clean_old_deployments}" \
--stop_on_failure "${stop_on_failure}" \
--tarball_location '${tarball_location}'
10 changes: 5 additions & 5 deletions modules/aws/sonar-upgrader/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ variable "run_postflight_validations" {
description = "Whether to run the postflight validations or skip them"
}

variable "clean_old_deployments" {
type = bool
default = false
description = "Whether to clean old deployments after successful upgrade. In case postflight validations run and failed, old deployment directories cleaning will be skipped. This variable is not operational in this POC."
}
#variable "clean_old_deployments" {
# type = bool
# default = false
# description = "Whether to clean old deployments after successful upgrade. In case postflight validations run and failed, old deployment directories cleaning will be skipped. This variable is not operational in this POC."
#}


variable "stop_on_failure" {
Expand Down

0 comments on commit 333c9a3

Please sign in to comment.