def update_headers(headers, api_version):
    """Set 'OpenStack-API-Version' header if api_version is not
       null
    """
    if api_version and api_version.ver_minor != 0:
        headers['OpenStack-API-Version'] = 'volume ' + api_version.get_string()
