qubespolicy: make commas exchangeable for spaces
Commas in policy action are optional, if used with spaces.
This commit is contained in:
parent
36d56010af
commit
55c9370454
@ -129,7 +129,7 @@ class PolicyRule(object):
|
||||
except ValueError:
|
||||
raise PolicySyntaxError(filename, lineno, 'wrong number of fields')
|
||||
|
||||
(action, *params) = self.full_action.replace(' ', '').split(',')
|
||||
(action, *params) = self.full_action.replace(',', ' ').split()
|
||||
try:
|
||||
self.action = Action[action]
|
||||
except KeyError:
|
||||
|
Loading…
Reference in New Issue
Block a user