From d5fa5d910645bcc098435930316b54aa7a1ad118 Mon Sep 17 00:00:00 2001 From: mkdigital0 <151559924+mkdigital0@users.noreply.github.com> Date: Fri, 19 Apr 2024 18:41:16 +0200 Subject: [PATCH] Update list_snapshots.py Fix get_key only ever matching the first volume --- examples/rest_api/list_snapshots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rest_api/list_snapshots.py b/examples/rest_api/list_snapshots.py index 03da58a..9c8b725 100755 --- a/examples/rest_api/list_snapshots.py +++ b/examples/rest_api/list_snapshots.py @@ -49,7 +49,7 @@ def get_key(cluster: str, volume_name: str, svm_name: str, headers_inc: str): for i in vols: if i['name'] == volume_name: return i['uuid'] - return None + return None def get_volumes(cluster: str, svm_name: str, headers_inc: str):