Skip to content

Commit

Permalink
secure local variables in a loop
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed Aug 25, 2020
1 parent d2ed62e commit e4a5c5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions datastore/linstor_un/linstor_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ function linstor_get_snap_ids_for_res {
# @return host to be used as bridge
#-------------------------------------------------------------------------------
function linstor_get_bridge_host {
local HOST
local RES="$1"
local MUST_CONTAIN="${2:-0}"
local RR_ID="$3"
Expand Down Expand Up @@ -345,6 +346,9 @@ function linstor_exec_and_log {
# - LINSTOR_CLEANUP_SNAPSHOT
#-------------------------------------------------------------------------------
function linstor_cleanup_trap {
local RES
local RES_SNAPSHOT
local NODE_RES
for RES in $LINSTOR_CLEANUP_RD; do
linstor_exec_and_log_no_error \
"resource-definition delete $RES"
Expand Down

0 comments on commit e4a5c5d

Please sign in to comment.