Skip to content

Commit

Permalink
Merge branch 'ADCM-4592-hotfix' into 'hotfix'
Browse files Browse the repository at this point in the history
ADCM-4592 Fixed search prototype for before_upgrade

See merge request arenadata/development/adcm!3065
  • Loading branch information
a-alferov committed Oct 9, 2023
2 parents 3996d81 + ac225df commit 409f5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cm/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def get_before_upgrade(obj: ADCMEntity, host: Host | None) -> dict:
name=obj_prototype.name, parent__name=obj_prototype.parent.name, bundle_id=bundle_id
)
else:
old_proto = Prototype.objects.get(name=obj_prototype.name, bundle_id=bundle_id)
old_proto = Prototype.objects.get(name=obj_prototype.name, bundle_id=bundle_id, parent=None)

except Prototype.DoesNotExist:
logger.info("Can't get old proto for %s. Old bundle id: %s", obj, bundle_id)
Expand Down

0 comments on commit 409f5e3

Please sign in to comment.