From 80ba04c7a1abb3b503734e4e5eeb0fa83a15368e Mon Sep 17 00:00:00 2001 From: alexandredevely <12896316+alexandredevely@users.noreply.github.com> Date: Fri, 1 Sep 2023 14:31:09 +0200 Subject: [PATCH] replace find_app_by_image by find_app_by_id --- oc/od/composer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oc/od/composer.py b/oc/od/composer.py index 589ac1d..d29ed61 100755 --- a/oc/od/composer.py +++ b/oc/od/composer.py @@ -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: