Skip to content

Commit

Permalink
Only override location if artifact_path is supplied.
Browse files Browse the repository at this point in the history
Signed-off-by: Bryce Gattis <[email protected]>
  • Loading branch information
BryceGattis committed Mar 3, 2024
1 parent 74a0b17 commit 698d44f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/rezplugins/package_repository/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,6 @@ def install_variant(self, variant_resource: VariantResource, artifact_path=None,
variant_name = variant_resource.name
variant_version = variant_resource.version

# At this point, the variant_resource is in memory repository...?

variant_location = artifact_path

if "name" in overrides:
variant_name = overrides["name"]
if variant_name is self.remove:
Expand All @@ -307,7 +303,8 @@ def install_variant(self, variant_resource: VariantResource, artifact_path=None,

variant_version = ver

overrides["location"] = variant_location
if artifact_path:
overrides["location"] = artifact_path

post = self._get_variant_document(variant_resource, overrides)
post_id = post.get("_id")
Expand Down

0 comments on commit 698d44f

Please sign in to comment.