From 4568a68d836d7370adfdf623f7e431a4fe5f811f Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Wed, 17 Nov 2021 14:05:20 +0100 Subject: [PATCH] CsDhcp.py: fix runtests.sh error (#5671) $ cd systemvm/test $ bash -x runtests.sh ...... ../debian/opt/cloud/bin/cs/CsDhcp.py:114:25: E266 too many leading '#' for block comment + '[' 1 -gt 0 ']' + echo 'pycodestyle failed, please check your code' --- systemvm/debian/opt/cloud/bin/cs/CsDhcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py index 964cf7a860d..bfa17404697 100755 --- a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py +++ b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py @@ -111,7 +111,7 @@ class CsDhcp(CsDataBag): if self.config.is_dhcp() and not self.config.use_extdns(): guest_ip = self.config.address().get_guest_ip() if guest_ip and guest_ip in dns_list and ip not in dns_list: - ## Replace the default guest IP in VR with the ip in additional IP ranges, if shared network has multiple IP ranges. + # Replace the default guest IP in VR with the ip in additional IP ranges, if shared network has multiple IP ranges. dns_list.remove(guest_ip) dns_list.insert(0, ip) line = "dhcp-option=tag:interface-%s-%s,6,%s" % (device, idx, ','.join(dns_list))