Ubuntu Pastebin

Paste from smoser at Thu, 30 Mar 2017 16:59:30 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/cloudinit/net/netplan.py b/cloudinit/net/netplan.py
index 7bf10216..fc7934d3 100644
--- a/cloudinit/net/netplan.py
+++ b/cloudinit/net/netplan.py
@@ -1,12 +1,12 @@
 # This file is part of cloud-init.  See LICENSE file ...
 
 import copy
-import logging
 import os
 
 from . import renderer
 from .network_state import subnet_is_ipv6
 
+from cloudinit import log as logging
 from cloudinit import util
 from cloudinit.net import SYS_CLASS_NET, get_devicelist
 
@@ -188,7 +188,7 @@ class Renderer(renderer.Renderer):
 
     def _netplan_generate(self, run=False):
         if not run:
-            LOG.debug("netplan postcmd disabled")
+            LOG.debug("netplan generate postcmd disabled")
             return
         util.subp(self.NETPLAN_GENERATE, capture=True)
 
@@ -198,7 +198,7 @@ class Renderer(renderer.Renderer):
            the setup_link udev builtin command
         """
         if not run:
-            LOG.debug("netsetup postcmd disabled")
+            LOG.debug("net_setup_link postcmd disabled")
             return
         setup_lnk = ['udevadm', 'test-builtin', 'net_setup_link']
         for cmd in [setup_lnk + [SYS_CLASS_NET + iface]
Download as text