A bunch of python files in rpc and scripts directories were missing two blank lines after the opening comments. python3-pycodestyle-2.5.0-2.el8 was unhappy with this Signed-off-by: Mike Gerdts <mgerdts@nvidia.com> Change-Id: Iee7f2bd4f0ddd96b2be89949a3aa324b2f9ea43a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16003 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
31 lines
630 B
Python
31 lines
630 B
Python
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (C) 2018 Intel Corporation.
|
|
# All rights reserved.
|
|
|
|
|
|
def notify_get_types(client):
|
|
return client.call("notify_get_types")
|
|
|
|
|
|
def notify_get_notifications(client,
|
|
id=None,
|
|
max=None):
|
|
"""
|
|
|
|
Args:
|
|
id First ID to start fetching from
|
|
max Maximum number of notifications to return in response
|
|
|
|
Return:
|
|
Notifications array
|
|
"""
|
|
|
|
params = {}
|
|
if id:
|
|
params['id'] = id
|
|
|
|
if max:
|
|
params['max'] = max
|
|
|
|
return client.call("notify_get_notifications", params)
|