Skip to content

Commit

Permalink
chore(defaults): values change (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauzigo authored Jun 5, 2019
1 parent 2cdf696 commit 76bdb08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tf_files/aws/csoc_common_logging/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ variable "elasticsearch_domain" {
}

variable "threshold" {
default = "4.00"
default = ""
}

variable "slack_webhook" {
Expand Down
4 changes: 2 additions & 2 deletions tf_files/aws/modules/common-logging/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ def check_speed(event,logGroup):
would send out a notification to a slack channel expresed as env variable
"""


# if there is no threshold, let's not even check
if os.environ.get('threshold') is not None:
threshold = float(os.environ.get('threshold'))
else:
threshold = 4.00
return

response_time = 100.00

Expand Down
2 changes: 1 addition & 1 deletion tf_files/aws/modules/common-logging/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ variable "aws_secret_key"{
}

variable "threshold"{
default = "4.00"
default = ""
}

variable "slack_webhook"{
Expand Down

0 comments on commit 76bdb08

Please sign in to comment.