diff --git a/library/network_connections.py b/library/network_connections.py index efcc9a6..14e3d96 100644 --- a/library/network_connections.py +++ b/library/network_connections.py @@ -2673,7 +2673,7 @@ class Cmd_initscripts(Cmd): def run_prepare(self): Cmd.run_prepare(self) for idx, connection in enumerate(self.connections): - if connection['type'] in [ 'macvlan' ]: + if connection.get('type') in [ 'macvlan' ]: self.log_fatal(idx, 'unsupported type %s for initscripts provider' % (connection['type'])) def check_name(self, idx, name = None):