Skip to content

Commit

Permalink
CA-349188: only the initiatorname is critical, installer might not se…
Browse files Browse the repository at this point in the history
…t alias

Signed-off-by: Mark Syms <mark.syms@citrix.com>
  • Loading branch information
MarkSymsCtx committed Nov 23, 2020
1 parent fb3c65f commit 5b14047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/set-iscsi-initiator
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ INITIATORALIAS=$2
flock -s 200

CURRENT_INITATOR=$(awk 'BEGIN { FS = "=" } /InitiatorName/ {print $2}' $INITIATORFILE)
CURRENT_ALIAS=$(awk 'BEGIN { FS = "=" } /InitiatorAlias/ {print $2}' $INITIATORFILE)

if [ "$CURRENT_INITATOR" == "$INITIATORNAME" -a "$CURRENT_ALIAS" == "$INITIATORALIAS" ]
# Only care that the initiator name is the name, alias may be missing
if [ "$CURRENT_INITATOR" == "$INITIATORNAME" ]
then
exit 0
fi
Expand Down

0 comments on commit 5b14047

Please sign in to comment.