Skip to content

Commit

Permalink
Linting error fixes in mgmtstoreage_add_network_exception scripts and…
Browse files Browse the repository at this point in the history
… devops terraform.tf
  • Loading branch information
Ashis Kar committed Feb 14, 2025
1 parent 7cb8dca commit 1f41328
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
22 changes: 16 additions & 6 deletions devops/scripts/mgmtstorage_add_network_exception.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@
#

function mgmtstorage_add_network_exception() {
local RESOURCE_GROUP=$(get_resource_group_name)
local SA_NAME=$(get_storage_account_name)
local MY_IP=$(get_my_ip)
local RESOURCE_GROUP
RESOURCE_GROUP=$(get_resource_group_name)

local SA_NAME
SA_NAME=$(get_storage_account_name)

local MY_IP
MY_IP=$(get_my_ip)

echo -e "\nAdding deployment network exception to storage account $SA_NAME..."

Expand Down Expand Up @@ -38,9 +43,14 @@ function mgmtstorage_add_network_exception() {
}

function mgmtstorage_remove_network_exception() {
local RESOURCE_GROUP=$(get_resource_group_name)
local SA_NAME=$(get_storage_account_name)
local MY_IP=$(get_my_ip)
local RESOURCE_GROUP
RESOURCE_GROUP=$(get_resource_group_name)

local SA_NAME
SA_NAME=$(get_storage_account_name)

local MY_IP
MY_IP=$(get_my_ip)

echo -e "\nRemoving deployment network exception from storage account $SA_NAME..."

Expand Down
4 changes: 4 additions & 0 deletions devops/terraform/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ terraform {
source = "hashicorp/azurerm"
version = "3.117.0"
}
http = {
source = "hashicorp/http"
version = "~> 3.4"
}
}
}

0 comments on commit 1f41328

Please sign in to comment.