Skip to content
Snippets Groups Projects
Commit 726143e3 authored by Attila Farkas's avatar Attila Farkas
Browse files

remove python error message on missing file

parent c51c52ce
No related branches found
No related tags found
1 merge request!4Resolve "Add an error message when user provides a non-existing file with sandbox definition as input"
......@@ -2,6 +2,7 @@
Jinja2 """
import yaml
import sys
from modules.attribute_formatter import add_simple_commands
from modules.provider import add_prov_attributes, add_router_specification
......@@ -18,7 +19,8 @@ def open_file(file_name):
return yaml.safe_load(input_file)
except IOError:
print("Error: Cannot find a required file: " + str(file_name))
sys.exit(1)
def _add_provisioning(hostname, host_definitions):
""" Adds provisioning to the device if the file exists. """
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment