]> git.proxmox.com Git - mirror_ifupdown2.git/blobdiff - ifupdown2/addons/dhcp.py
sonarlink: use opposite operator != instead of 'not'
[mirror_ifupdown2.git] / ifupdown2 / addons / dhcp.py
index 1b3d7005ac4b466262e7f66613e4214c7a72bec1..4d1da1a483d988dc8c1943de7a32db121f34f900 100644 (file)
@@ -149,7 +149,7 @@ class dhcp(Addon, moduleBase):
             dhclient_cmd_prefix = None
             dhcp_wait = policymanager.policymanager_api.get_attr_default(
                 module_name=self.__class__.__name__, attr='dhcp-wait')
-            wait = not str(dhcp_wait).lower() == "no"
+            wait = str(dhcp_wait).lower() != "no"
             dhcp6_ll_wait = policymanager.policymanager_api.get_iface_default(module_name=self.__class__.__name__, \
                 ifname=ifaceobj.name, attr='dhcp6-ll-wait')
             try: