Commit d1f8bbd5 authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

fix(srm): pass app id in deployed app lookups

Keep FM internal deployment status checks compatible with adapter signatures so federated kubernetes smoke tests stop failing with 500s.
parent 99bed9fc
Loading
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -352,7 +352,10 @@ def deploy_app():


def get_deployed_app(app_id: str, app_instance_id: str, zone_id: str):
    response = edgecloud_adapter.get_deployed_app(app_instance_id)
    response = edgecloud_adapter.get_deployed_app(
        app_instance_id=app_instance_id,
        app_id=app_id,
    )
    normalized = _extract_deployed_app(response)
    if isinstance(normalized, tuple):
        data, status = normalized
@@ -368,7 +371,10 @@ def get_deployed_app(app_id: str, app_instance_id: str, zone_id: str):


def undeploy_app(app_id: str, app_instance_id: str, zone_id: str):
    response = edgecloud_adapter.get_deployed_app(app_instance_id)
    response = edgecloud_adapter.get_deployed_app(
        app_instance_id=app_instance_id,
        app_id=app_id,
    )
    normalized = _extract_deployed_app(response)
    if isinstance(normalized, tuple):
        data, status = normalized