summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParide Legovini <paride.legovini@canonical.com>2021-10-07 18:07:43 +0200
committerGitHub <noreply@github.com>2021-10-07 10:07:43 -0600
commit3d2bac8bf6d0c53f56e14cb2c15b0c695cf0a647 (patch)
tree8a07902b84569f918c6ed18ca512ba8c4e2d616b
parent1bbb67ca200e53d98d7f14904b986240a2fca4b5 (diff)
downloadvyos-cloud-init-3d2bac8bf6d0c53f56e14cb2c15b0c695cf0a647.tar.gz
vyos-cloud-init-3d2bac8bf6d0c53f56e14cb2c15b0c695cf0a647.zip
renderer: convert relative imports to absolute (#1052)
Fixes the following pylint error: cloudinit/net/renderer.py:12: [E0611(no-name-in-module), ] No name 'generate_udev_rule' in module 'udev' Likely a false positive, but we don't really need to keep the imports relative, so let's convert them to absolute as a workaround.
-rw-r--r--cloudinit/net/renderer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/net/renderer.py b/cloudinit/net/renderer.py
index 27447bc2..54a83b51 100644
--- a/cloudinit/net/renderer.py
+++ b/cloudinit/net/renderer.py
@@ -8,8 +8,8 @@
import abc
import io
-from .network_state import parse_net_config_data
-from .udev import generate_udev_rule
+from cloudinit.net.network_state import parse_net_config_data
+from cloudinit.net.udev import generate_udev_rule
def filter_by_type(match_type):