diff options
| author | Scott Bahling <sbahling@suse.com> | 2020-02-03 12:36:56 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.com> | 2020-02-03 12:36:56 +0100 |
| commit | 1fa06716db77c8b73ca6dc7463220fea92994004 (patch) | |
| tree | a5a706320566feb87009a899ac4dc2097ebeab9b | |
| parent | 02f17e59e40fec9cb44261321f65d37b5fb70577 (diff) | |
| download | obsapi-1fa06716db77c8b73ca6dc7463220fea92994004.tar.gz obsapi-1fa06716db77c8b73ca6dc7463220fea92994004.tar.xz obsapi-1fa06716db77c8b73ca6dc7463220fea92994004.zip | |
Do not default to flag status of enable. We error if no status provided.
| -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) |
