Ubuntu Pastebin

Paste from smoser at Mon, 20 Mar 2017 19:17:24 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
diff --git a/cloudinit/net/network_state.py b/cloudinit/net/network_state.py
index a2fe4c4a..e2db999f 100644
--- a/cloudinit/net/network_state.py
+++ b/cloudinit/net/network_state.py
@@ -565,7 +565,11 @@ class NetworkStateInterpreter(object):
             }
             mac_address = cfg.get('match', {}).get('macaddress', None)
             if not mac_address:
-                LOG.warning('NetworkState Version2: missing macaddress')
+                logfunc = LOG.warning
+                if util.is_container:
+                    logfunc = LOG.debug
+                logfunc('NetworkState Version2: missing "macaddress" info '
+                        'in config entry: %s: %s', eth, str(cfg))
 
             for key in ['mtu', 'match', 'wakeonlan']:
                 if key in cfg:
Download as text