diff options
| -rw-r--r-- | obsapi/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
