diff options
Diffstat (limited to 'cloudinit/config/cc_vyos_userdata.py')
-rw-r--r-- | cloudinit/config/cc_vyos_userdata.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cloudinit/config/cc_vyos_userdata.py b/cloudinit/config/cc_vyos_userdata.py index 95ba82de..5ad27b31 100644 --- a/cloudinit/config/cc_vyos_userdata.py +++ b/cloudinit/config/cc_vyos_userdata.py @@ -18,7 +18,10 @@ import re from pathlib import Path from cloudinit import log as logging from cloudinit.settings import PER_INSTANCE -from vyos.configtree import ConfigTree +try: + from vyos.configtree import ConfigTree +except ImportError as err: + print(f'The module cannot be imported: {err}') # configure logging logger = logging.getLogger(__name__) |