We removed all of the existing deprecated aliases recently, but didn't remove the associated imports. Found by lgtm.com. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I2b8526254da26ad4a9b34eb67b155dacfe9a5e57 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12862 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
26 lines
522 B
Python
26 lines
522 B
Python
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)
|