mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
updated the warning comment
This commit is contained in:
parent
5ce41fa85e
commit
26bd6be4f2
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class DiskDistributionRegistry(DistributionRegistry):
|
||||||
|
|
||||||
async def register(self, obj: RoutableObjectWithProvider) -> bool:
|
async def register(self, obj: RoutableObjectWithProvider) -> bool:
|
||||||
existing_obj = await self.get(obj.type, obj.identifier)
|
existing_obj = await self.get(obj.type, obj.identifier)
|
||||||
# warn if the object's providerid already exists but proceed with registration
|
# warn if the object's providerid is different but proceed with registration
|
||||||
if existing_obj and existing_obj.provider_id != obj.provider_id:
|
if existing_obj and existing_obj.provider_id != obj.provider_id:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
f"Object {existing_obj.type}:{existing_obj.identifier} with provider_id {existing_obj.provider_id} is being replaced with {existing_obj.type}:{existing_obj.identifier} with provider_id {obj.provider_id}, overwriting"
|
f"Object {existing_obj.type}:{existing_obj.identifier} with provider_id {existing_obj.provider_id} is being replaced with {existing_obj.type}:{existing_obj.identifier} with provider_id {obj.provider_id}, overwriting"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue