Rule creation with congress_noauth fails
Bug #1433745 reported by
Tim Hinrichs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
congress |
Fix Released
|
Medium
|
Amey Bhide |
Bug Description
$ ./congress_noauth policy rule create classification 'error(x) :- q(x)'
usage: openstack congress policy rule create [-h]
openstack congress policy rule create: error: unrecognized arguments: :- q(x)
Changed in congress: | |
assignee: | nobody → Amey Bhide (abhide) |
Changed in congress: | |
status: | New → In Progress |
Changed in congress: | |
status: | In Progress → Fix Committed |
Changed in congress: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
"" around rule get removed when we try to interpret them as positional parameters in bash
Need to escape double-quotes
See the difference:
./congress_noauth policy rule create test_policy1 "a(x) :- b(x)" 127.0.0. 1:1789 congress policy rule create test_policy1 a(x) :- b(x)
openstack --os-token foo --os-url http://
./congress_noauth policy rule create test_policy1 "\"a(x) :- b(x)\"" 127.0.0. 1:1789 congress policy rule create test_policy1 "a(x) :- b(x)"
openstack --os-token foo --os-url http://