Cannot add multi word domain descriptions

Bug #1861372 reported by Kevin Chan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MicroStack
Confirmed
Medium
Unassigned

Bug Description

Issue:
When adding a new domain, the --description option does not allow spaces. It assumes the second word in the description is the domain name.

Steps to Reproduce:

microstack.openstack domain create --description "this is a test" example.com
openstack domain create: error: unrecognized arguments: a test example.com

microstack.openstack domain create --description "this domain"
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description | this |
| enabled | True |
| id | 24a0383a7f984558a74f521ff6c3b0ac |
| name | domain |
| tags | [] |
+-------------+----------------------------------+

Expected Result:
Everything in double quotes should be part of the description.

snap list:
Name Version Rev Tracking Publisher Notes
microstack stein 198 edge canonical✓ classic

Revision history for this message
Pen Gale (pengale) wrote :

Thank you for the bug report!

This issue is due to a wrapper script that the snap places around the openstack command (said script sources /var/snap/microstack/common/etc/microstack.rc, in addition to checking to verify that the snap has been initialized).

The fix is probably simple: replace `exec $@` with `exec "$@"` at the end of the script, and verify that no part of the snap is relying on the unquoted behavior.

(This would be a welcome contribution from someone with the time to submit a patch.)

Changed in microstack:
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.