X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/xvm-iscsi-config.git/blobdiff_plain/02d816b78f2fcc25775964ca6ee2eb6fad18eafc..refs/heads/prod:/xvm-iscsi-connect diff --git a/xvm-iscsi-connect b/xvm-iscsi-connect index b0701d0..ede3b36 100755 --- a/xvm-iscsi-connect +++ b/xvm-iscsi-connect @@ -43,9 +43,9 @@ for node in $bad_nodes; do echo "Removing $node" # Remove the node entry - rm $node; + rm $node # Remove the cached results of the discovery so iscsiadm doesn't # get confused - find /etc/iscsi/send_targets -lname "${node%/*}" -delete + find /etc/iscsi/send_targets -lname "${node%/*}" -name "*,${node##*/}" -print -delete done