Skip to content

Commit dfdd8b5

Browse files
Merge pull request #139 from guidotijskens/version01250
Version01250
2 parents b024239 + 6b9b20a commit dfdd8b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3996
-1150
lines changed

bin/oci-iscsi-config

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare -i post_operation_show=0
2626
if [ "${1:0:1}" != '-' ]
2727
then
2828
# execute as is as the command line do not start with an option dash-<something>
29-
exec ${_PY3} ${s_dir}/oci-iscsi-config-main.py $@
29+
exec ${_PY3} ${s_dir}/oci-iscsi-config-main.py "$@"
3030
fi
3131

3232
PARSED_ARGUMENTS=$(getopt -a --quiet -o sC:iAd:a:c:yf --long show,compartment:,interactive,all,detach:,attach:,create-volume:,destroy-volume:,volume-name:,username:,password:,help,yes,attach-volume,force -- "$@")
@@ -69,8 +69,14 @@ do
6969
break
7070
;;
7171
# end of parsing , everything getopt did not understood is after that, we do not care in our case
72-
--) shift; break ;;
73-
*) COMMAND="usage" ; break ;;
72+
--)
73+
if [ -z ${COMMAND} ]
74+
then
75+
COMMAND="usage"
76+
fi
77+
shift; break
78+
;;
79+
*) COMMAND="usage" ; break ;;
7480
esac
7581
done
7682

bin/oci-network-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ then
175175
cmd_line="$cmd_line --ip-address=${PRIVATE_IP}"
176176
fi
177177
# else
178-
# echo "_GT_ ${COMMAND} handled elsewhere"
178+
# echo "GT ${COMMAND} handled elsewhere"
179179
fi
180180

181181
if [ ${EXCLUDED_ITEMS[${COMMAND}]+_} ] && [ -n "${EXCLUDED_ITEMS[${COMMAND}]}" ]

0 commit comments

Comments
 (0)