Commit e5f5a910 authored by Łukasz Nowak's avatar Łukasz Nowak

Support status enumeration.

parent 98d6da7d
60 61
\ No newline at end of file \ No newline at end of file
...@@ -461,6 +461,9 @@ class ComputerPublisher(GenericPublisher): ...@@ -461,6 +461,9 @@ class ComputerPublisher(GenericPublisher):
error_list.append('Missing key "%s".' % k) error_list.append('Missing key "%s".' % k)
elif not isinstance(dict_[k], unicode): elif not isinstance(dict_[k], unicode):
error_list.append('Key "%s" is not unicode.' % k) error_list.append('Key "%s" is not unicode.' % k)
elif k == 'status' and dict_[k] not in ['installed',
'uninstalled', 'error']:
error_list.append('Status "%s" is incorrect.' % dict_[k])
if len(error_list) > 0: if len(error_list) > 0:
error_dict['%s_%s' % (prefix, no)] = error_list error_dict['%s_%s' % (prefix, no)] = error_list
no += 1 no += 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment