blob: 2155b12ba1ffc829f91c6a967d502235ef95a390 [file] [log] [blame]
Adam Tenglerb1ebaca2017-05-04 21:06:08 +00001#!/usr/bin/env python
2import salt.config
3import salt.loader
4
5
6def main():
7 path = "/etc/keystone/policy.json"
8 __opts__ = salt.config.minion_config('/etc/salt/minion')
9 keystone_policy_mod = salt.loader.raw_mod(__opts__, 'keystone_policy', None)
Adam Tengler6be53202017-05-15 14:15:44 +020010 if keystone_policy_mod:
11 result = keystone_policy_mod['keystone_policy.rule_list'](path)
12 if result and 'Error' not in result:
13 return {'keystone_policy': result}
Adam Tenglerb1ebaca2017-05-04 21:06:08 +000014 return {}
15