From 1fa06716db77c8b73ca6dc7463220fea92994004 Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Mon, 3 Feb 2020 12:36:56 +0100 Subject: Do not default to flag status of enable. We error if no status provided. --- obsapi/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obsapi/core.py b/obsapi/core.py index 8d7d995..35a4884 100644 --- a/obsapi/core.py +++ b/obsapi/core.py @@ -402,7 +402,7 @@ class ObsApi(object): except AttributeError: raise Exception('flag type %s missing get function' % type(flag)) - status = getattr(flag, 'status', flag.get('status', 'enable')) + status = getattr(flag, 'status', flag.get('status', None)) if status not in ['enable', 'disable']: raise ValueError('flag status expected "enable" or "disable" got %s' % status) -- cgit v1.2.3