Skip to content

Commit

Permalink
qubespolicy: make commas exchangeable for spaces
Browse files Browse the repository at this point in the history
Commas in policy action are optional, if used with spaces.
  • Loading branch information
woju committed Jul 4, 2017
1 parent 36d5601 commit 55c9370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubespolicy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __init__(self, line, filename=None, lineno=None):
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:
Expand Down

0 comments on commit 55c9370

Please sign in to comment.