def placement_init():
 global _ENFORCER_PLACEMENT
 if (not _ENFORCER_PLACEMENT):
  rules = policy.Rules.load(jsonutils.dumps({'placement': 'role:admin'}))
  _ENFORCER_PLACEMENT = policy.Enforcer(CONF, rules=rules, use_conf=False)

def placement_init ( ) : global _ENFORCER_PLACEMENT if ( not _ENFORCER_PLACEMENT ) : rules = policy . Rules . load ( jsonutils . dumps ( { 'placement' : 'role:admin' } ) ) _ENFORCER_PLACEMENT = policy . Enforcer ( CONF , rules = rules , use_conf = False )
init an enforcer class for placement policy .