deb-congress/congress
Eric Kao 9312684e0f return prettified input rule string in rule insert
Instead of the unreadable column-eliminated version.

Example:
Old:
$ openstack congress policy rule create classification \
'server_with_bad_flavor(id) :- nova:servers(id=id,flavor_id=flavor_id),
nova:flavors(id=flavor_id, name=flavor), not permitted_flavor(flavor)'
+---------+----------------------------------------------------------------------------------+
| Field   | Value                                                                            |
+---------+----------------------------------------------------------------------------------+
| comment |                                                                                  |
| id      | 80415ef6-ac68-46ee-99f3-511f757ce826                                             |
| name    | None                                                                             |
| rule    | server_with_bad_flavor(id) :-                                                    |
|         |     nova:servers(id, x_21, x_22, x_23, x_24, x_25, x_26, flavor_id, x_28, x_29), |
|         |     nova:flavors(flavor_id, flavor, x_12, x_13, x_14, x_15, x_16),               |
|         |     not permitted_flavor(flavor)                                                 |
+---------+----------------------------------------------------------------------------------+

New:
+---------+----------------------------------------------------------+
| Field   | Value                                                    |
+---------+----------------------------------------------------------+
| comment |                                                          |
| id      | 80415ef6-ac68-46ee-99f3-511f757ce826                     |
| name    | None                                                     |
| rule    | server_with_bad_flavor(id) :-                            |
|         |   nova:servers(id=id,flavor_id=flavor_id),               |
|         |   nova:flavors(id=flavor_id, name=flavor),               |
|         |   not permitted_flavor(flavor)                           |
+---------+----------------------------------------------------------+

Change-Id: I840d6ff0b35aca09dc3ef630b6b8629228b0b7ce
2017-07-18 21:46:23 +00:00
..
api Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
common Automatically load library policy files at start 2017-07-06 17:45:19 -07:00
datalog Pad positional args up to required number 2017-04-12 15:13:19 -07:00
datasources Merge "Replace oslo_utils.timeutils.isotime" 2017-06-05 10:34:21 +00:00
db Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
dse2 Merge "Set access_policy for messaging's dispatcher" 2017-07-07 04:38:57 +00:00
library_service Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
policy_engines return prettified input rule string in rule insert 2017-07-18 21:46:23 +00:00
server Update and add haht rule test cases for locking 2017-01-30 20:22:39 +00:00
synchronizer Add policy creation with rules or from policy library 2017-07-17 16:26:24 -07:00
tests return prettified input rule string in rule insert 2017-07-18 21:46:23 +00:00
__init__.py Removes unnecessary utf-8 encoding 2017-02-27 19:38:03 -08:00
auth.py delete unused log translations 2017-03-28 16:29:37 +08:00
context.py delete unused log translations 2017-03-28 16:29:37 +08:00
exception.py Automatically load library policy files at start 2017-07-06 17:45:19 -07:00
harness.py Automatically load library policy files at start 2017-07-06 17:45:19 -07:00
opts.py Fixes congress.conf.sample file generation 2017-01-20 08:01:43 -06:00
service.py Use only strings in paste.deploy.loadapp global_conf 2016-09-15 18:00:11 +00:00
utils.py return prettified input rule string in rule insert 2017-07-18 21:46:23 +00:00
version.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00