Skip to content

Commit 1f41328

Browse files
author
Ashis Kar
committed
Linting error fixes in mgmtstoreage_add_network_exception scripts and devops terraform.tf
1 parent 7cb8dca commit 1f41328

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

devops/scripts/mgmtstorage_add_network_exception.sh

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@
88
#
99

1010
function mgmtstorage_add_network_exception() {
11-
local RESOURCE_GROUP=$(get_resource_group_name)
12-
local SA_NAME=$(get_storage_account_name)
13-
local MY_IP=$(get_my_ip)
11+
local RESOURCE_GROUP
12+
RESOURCE_GROUP=$(get_resource_group_name)
13+
14+
local SA_NAME
15+
SA_NAME=$(get_storage_account_name)
16+
17+
local MY_IP
18+
MY_IP=$(get_my_ip)
1419

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

@@ -38,9 +43,14 @@ function mgmtstorage_add_network_exception() {
3843
}
3944

4045
function mgmtstorage_remove_network_exception() {
41-
local RESOURCE_GROUP=$(get_resource_group_name)
42-
local SA_NAME=$(get_storage_account_name)
43-
local MY_IP=$(get_my_ip)
46+
local RESOURCE_GROUP
47+
RESOURCE_GROUP=$(get_resource_group_name)
48+
49+
local SA_NAME
50+
SA_NAME=$(get_storage_account_name)
51+
52+
local MY_IP
53+
MY_IP=$(get_my_ip)
4454

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

devops/terraform/terraform.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@ terraform {
66
source = "hashicorp/azurerm"
77
version = "3.117.0"
88
}
9+
http = {
10+
source = "hashicorp/http"
11+
version = "~> 3.4"
12+
}
913
}
1014
}

0 commit comments

Comments
 (0)