2022-07-19 07:59:09 |
Weii Wang |
description |
microstack.openstack wrapper provided by snap failed to passthrough command line arguments with special characters like whitespace.
To reproduce this error, on microstack version: ussuri revision: 245
$ microstack.openstack domain create --description "description with whitespace" test
usage: openstack domain create [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN] [--noindent] [--prefix PREFIX] [--max-width <integer>] [--fit-width]
[--print-empty] [--description <description>] [--enable | --disable] [--or-show]
<domain-name>
openstack domain create: error: unrecognized arguments: whitespaces test
The problem is due to the missing double quotes in Line 12 of ./snap-wrappers/openstack/openstack-wrapper, a simple patch like this confirmed fixing this issue.
$ diff a/snap-wrappers/openstack/openstack-wrapper b/snap-wrappers/openstack/openstack-wrapper
12c12
< exec $@
---
> exec "$@" |
microstack.openstack wrapper provided by snap failed to passthrough command line arguments with special characters like whitespace.
To reproduce this error, on microstack version: ussuri revision: 245
$ microstack.openstack domain create \
--description "description with whitespace" test
usage: openstack domain create [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN] [--noindent] [--prefix PREFIX] [--max-width <integer>] [--fit-width]
[--print-empty] [--description <description>] [--enable | --disable] [--or-show]
<domain-name>
openstack domain create: error: unrecognized arguments: whitespaces test
The problem is due to the missing double quotes in Line 12 of ./snap-wrappers/openstack/openstack-wrapper, a simple patch like this confirmed fixing this issue.
$ diff a/snap-wrappers/openstack/openstack-wrapper b/snap-wrappers/openstack/openstack-wrapper
12c12
< exec $@
---
> exec "$@" |
|