def updatesRequireRestart():
    return len([item for item in getUpdateList()
                if 'Restart' in item.get('RestartAction', '')]) > 0
Return True if any item in the update list requires a restart
dataset/ETHPy150Open munki/munki/code/apps/Managed Software Center/Managed Software Center/MunkiItems.py/updatesRequireRestart