def load(args):
    """
    :param args: Will be used to infer the proper configuration name, or
    if args.ceph_conf is passed in, that will take precedence
    """
    path = args.ceph_conf or '{cluster}.conf'.format(cluster=args.cluster)

    try:
        f = open(path)
    except IOError as e:
        raise exc.ConfigError(
            "%s; has `ceph-deploy new` been run in this directory?" % e
        )
    else:
        with contextlib.closing(f):
            return parse(f)
def load ( args ) : path = args . ceph_conf or '{cluster}.conf' . format ( cluster = args . cluster ) try : f = open ( path ) except IOError as e : raise exc . ConfigError ( "%s; has `ceph-deploy new` been run in this directory?" % e ) else : with contextlib . closing ( f ) : return parse ( f )
:param args: Will be used to infer the proper configuration name, or
    if args.ceph_conf is passed in, that will take precedence