def read_blob_file_contents(blob_file):
    try:
        with open(blob_file) as file:
            blob = file.read().strip()
        return blob
    except IOError:
        msg = "Error occurred trying to read from file %s"
        raise exceptions.CommandError(msg % blob_file)
dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/common/utils.py/read_blob_file_contents/original