Skip to content

Commit

Permalink
Remove fencing tags and rename stonith->fencing
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Hajas <mhajas@redhat.com>
  • Loading branch information
mhajas authored and ryanemerson committed Sep 11, 2024
1 parent 965d9a8 commit b09194a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions provision/opentofu/modules/aws/accelerator/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ module "lambda_function" {
}

function_name = var.name
handler = "stonith_lambda.handler"
handler = "fencing_lambda.handler"
runtime = "python3.12"
source_path = "src/stonith_lambda.py"
source_path = "src/fencing_lambda.py"
create_lambda_function_url = true
timeout = 15

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# tag::fencing[]
from urllib.error import HTTPError

import boto3
Expand Down Expand Up @@ -170,4 +169,3 @@ def handler(event, context):
SECRETS_REGION = env('SECRETS_REGION')
WEBHOOK_USER = env('WEBHOOK_USER')
WEBHOOK_USER_SECRET = env('WEBHOOK_USER_SECRET')
# end::fencing[]

0 comments on commit b09194a

Please sign in to comment.