getopt disorder output induce unrecognized arch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Kui Shi |
Bug Description
For the file "tripleo-
commit 444c63128d0354c
Add image already exists option to boot-seed-vm
The following change will disorder the getopt output:
-TEMP=`getopt -o hcna:o:s:b:e: -l use-existing-vm -n $SCRIPT_NAME -- "$@"`
+TEMP=`getopt -o hcnai:o:s:b:e: -l use-existing-vm -n $SCRIPT_NAME -- "$@"`
Here is error debug message:
++ getopt -o hcnai:o:s:b:e: -l use-existing-vm -n boot-seed-vm -- -a i386 ubuntu neutron-dhcp-agent
+ TEMP=' -a -- '\''i386'\'' '\''ubuntu'\'' '\''neutron-
+ '[' 0 '!=' 0 ']'
+ eval set -- ' -a -- '\''i386'\'' '\''ubuntu'\'' '\''neutron-
++ set -- -a -- i386 ubuntu neutron-dhcp-agent
+ true
+ case "$1" in
+ export ARCH=--
+ ARCH=--
+ shift 2
+ true
+ case "$1" in
+ echo 'Error: unsupported option i386.'
Error: unsupported option i386.
Here is a workaround for this:
@@ -61,7 +62,7 @@ function show_options () {
exit 0
}
-TEMP=`getopt -o hcnai:o:s:b:e: -l use-existing-vm -n $SCRIPT_NAME -- "$@"`
+TEMP=`getopt -o ihcna:o:s:b:e: -l use-existing-vm -n $SCRIPT_NAME -- "$@"`
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
# Note the quotes around `$TEMP': they are essential!
Changed in tripleo: | |
assignee: | nobody → Kui Shi (skuicloud) |
Changed in tripleo: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in tripleo: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/61271
Review: https:/