def create_host(env, name, platform, distribution, applications):
    print name % "Defining host %s"
    host = env.hosts().create(name, "", platform['name'], distribution['name'])

    # Configure platform
    context = host.get_platform()
    for key, value in platform['settings'].iteritems():
        context.settings().create(key, value)

    # Configure distribution
    context = host.get_distribution()
    for key, value in distribution['settings'].iteritems():
        context.settings().create(key, value)

    # Install applications
    for app in applications:
        host.install(app['name'], app['settings'])

    return host
dataset/ETHPy150Open comodit/demos/web-cluster/helper.py/create_host/swapped operands of `%`