Skip to content

Commit

Permalink
Refactor(deploy_to_cv): Remove metadata studio version detection (#3781)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausHolbechArista authored Mar 27, 2024
1 parent bef3911 commit 6f062fe
Showing 1 changed file with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"regions": [],
"routers": [],
"vrfs": [],
"version": "3.1",
}


Expand Down Expand Up @@ -226,16 +225,16 @@ async def deploy_cv_pathfinder_metadata_to_cv(cv_pathfinder_metadata: list[CVPat
studio_id=CV_PATHFINDER_METADATA_STUDIO_ID, workspace_id=result.workspace.id, default_value=CV_PATHFINDER_DEFAULT_STUDIO_INPUTS
)

# Ensure the metadata studio schema match our supported version
if (studio_version := existing_studio_inputs.get("version")) != "3.1":
LOGGER.warning(
(
"deploy_cv_pathfinder_metadata_to_cv: Got invalid metadata studio version '%s'. "
"This plugin only accepts version '3.1'. Skipping upload of metadata."
),
studio_version,
)
return
# TODO: Ensure the metadata studio schema match our supported version
# if (studio_version := existing_studio_inputs.get("version")) != "3.2":
# LOGGER.warning(
# (
# "deploy_cv_pathfinder_metadata_to_cv: Got invalid metadata studio version '%s'. "
# "This plugin only accepts version '3.2'. Skipping upload of metadata."
# ),
# studio_version,
# )
# return

studio_inputs = deepcopy(existing_studio_inputs)

Expand Down

0 comments on commit 6f062fe

Please sign in to comment.