From 55c9370454e031700f9b2496fad3fac2157f2a3c Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Tue, 4 Jul 2017 12:49:26 +0200 Subject: [PATCH] qubespolicy: make commas exchangeable for spaces Commas in policy action are optional, if used with spaces. --- qubespolicy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubespolicy/__init__.py b/qubespolicy/__init__.py index b44fd434..3473bfc9 100755 --- a/qubespolicy/__init__.py +++ b/qubespolicy/__init__.py @@ -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: