Skip to content

Commit

Permalink
replace find_app_by_image by find_app_by_id
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Sep 1, 2023
1 parent 68edf15 commit 80ba04c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oc/od/composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,11 +735,13 @@ def notify_user_from_pod_application( pod_application, message:str )->None:
# get image from the pod image
image = pod_application.status.container_statuses[0].image
# read the icon from
app = services.apps.find_app_by_image(image)
app = services.apps.find_app_by_id(image)
if isinstance(app, dict):
# add more info the data
data['icon'] = app.get('icon')
data['icondata'] = app.get('icondata')
else:
logger.error( f"image {image} is not found by find_app_by_id")
myOrchestrator.notify_user( myDesktop, 'container', data )

def notify_user( authinfo:AuthInfo, userinfo:AuthUser, method:str, data:json )->None:
Expand Down

0 comments on commit 80ba04c

Please sign in to comment.