Use OrderedDict to process policy.json rules

All openstack projects are currently using keystone_policy module
to add, update or delete rules from policy.json file. This module
basically gets existing rules from policy.json file and changes
them.

keystone_policy.rule_list currently imports rules as simple
dictionary. Python dictionaries are unordered and order matters
for policy.json file. As a result, it is possible to break the
services with 100% legitimate operation.

This patch switches to ordered dictionaries and fixes the issue
reported in PROD-13979.

Change-Id: Icdf94e76eff394b72041aa24b1716ae5c9afd463
1 file changed