@utils.arg('-n', '--name', metavar='<NAME>',
           help=_('New name of the policy to be updated.'))
@utils.arg('id', metavar='<POLICY>',
           help=_('Name of the policy to be updated.'))
def do_policy_update(service, args):
    show_deprecated('senlin policy-update', 'openstack cluster policy update')
    params = {
        'name': args.name,
    }

    policy = service.get_policy(args.id)
    if policy is not None:
        service.update_policy(policy.id, **params)
        _show_policy(service, policy_id=policy.id)
Update a policy.
dataset/ETHPy150Open openstack/python-senlinclient/senlinclient/v1/shell.py/do_policy_update