Skip to content
Snippets Groups Projects
Commit ae3c1490 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

get-models: Handle version == "" same as None

parent 33d6b9a4
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ def get_models(host, port, username, destination):
assert any(
[el.text == "NETCONF" for el in schema.findall(prefix + "location")]
)
if version is not None:
if version is not None and version != "":
v = f"@{version}"
else:
v = ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment