diff --git a/changes/190.housekeeping b/changes/190.housekeeping new file mode 100644 index 0000000..2833d46 --- /dev/null +++ b/changes/190.housekeeping @@ -0,0 +1 @@ +Update the version parsing function to retrieve version using _get_docker_nautobot_version. diff --git a/tasks.py b/tasks.py index 2d7972d..fc5ff9d 100644 --- a/tasks.py +++ b/tasks.py @@ -69,9 +69,10 @@ def is_truthy(arg): def _get_test_dump_path(context): - parsed_nautobot_version = context.nautobot_netbox_importer.nautobot_ver.split(".") + version = _get_docker_nautobot_version(context) + parsed_nautobot_version = version.split(".") if len(parsed_nautobot_version) < 2: # noqa: PLR2004 - raise ValueError(f"Can't determine the Nautobot version from: {context.nautobot_netbox_importer.nautobot_ver}") + raise ValueError(f"Can't determine the Nautobot version from: {version}") return ( Path(__file__).parent