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 e7ba52ab4b5d1641de53cd5e5faa0fa2564cc032 Author: Daan Hoogland <d...@onecht.net> AuthorDate: Tue Mar 9 17:51:01 2021 +0100 read files in vr as list(byte[]) --- systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py b/systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py index 1679970..31112ff 100755 --- a/systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py +++ b/systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py @@ -87,11 +87,11 @@ class CsNetfilters(object): def get_all_rules(self): for i in CsHelper.execute("iptables-save"): - if i.startswith('*'): # Table + if i.startswith(b'*'): # Table self.table.add(i[1:]) - if i.startswith(':'): # Chain + if i.startswith(b':'): # Chain self.chain.add(self.table.last(), i[1:].split(' ')[0]) - if i.startswith('-A'): # Rule + if i.startswith(b'-A'): # Rule self.chain.add_rule(i.split()[1]) rule = CsNetfilter() rule.parse(i)