def set_service_port(app, servicePort):
    try:
        app['container']['docker']['portMappings'][0]['servicePort'] \
            = int(servicePort)
    except __HOLE__:
        app['ports'][0] = int(servicePort)

    return app
dataset/ETHPy150Open mesosphere/marathon-lb/bluegreen_deploy.py/set_service_port