def _etcd_publish_app(**kwargs):
    appname = kwargs['instance']
    try:
        _etcd_client.write('/deis/services/{}'.format(appname), None, dir=True)
    except __HOLE__:
        # Ignore error when the directory already exists.
        pass
dataset/ETHPy150Open deis/deis/controller/api/models.py/_etcd_publish_app