From 2f4431a45c32658eb73017b13af2928af057465a Mon Sep 17 00:00:00 2001 From: Tony Meyer Date: Thu, 9 Nov 2023 10:33:09 +0200 Subject: [PATCH] Provide either id or label in secret-get, but not both. --- ops/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ops/model.py b/ops/model.py index 33f7f12cc..76a7d1b34 100644 --- a/ops/model.py +++ b/ops/model.py @@ -3289,7 +3289,7 @@ def secret_get(self, *, args: List[str] = [] if id is not None: args.append(id) - if label is not None: + elif label is not None: args.extend(['--label', label]) if refresh: args.append('--refresh')