This is an automated email from the ASF dual-hosted git repository.

gabriel pushed a commit to branch python3-vr
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit a9043dccaa0cf98d28a882f36a8bceb7a211f548
Author: Daan Hoogland <d...@onecht.net>
AuthorDate: Wed Mar 10 16:12:26 2021 +0100

    byte as separator on byte[]
---
 systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py 
b/systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py
index 31112ff..931b932 100755
--- a/systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py
+++ b/systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py
@@ -90,7 +90,7 @@ class CsNetfilters(object):
             if i.startswith(b'*'):  # Table
                 self.table.add(i[1:])
             if i.startswith(b':'):  # Chain
-                self.chain.add(self.table.last(), i[1:].split(' ')[0])
+                self.chain.add(self.table.last(), i[1:].split(b' ')[0])
             if i.startswith(b'-A'):  # Rule
                 self.chain.add_rule(i.split()[1])
                 rule = CsNetfilter()

Reply via email to