def get_pgroup_sched(module, array):
    """ Get Protection Group Schedule"""
    pgroup = None
    for pgrp in array.list_pgroups(schedule=True):
        if pgrp['name'] == module.params['pgroup']:
            pgroup = pgrp
            break
    return pgroup
