'Get the information items from the lsb_release command output.
Returns:
A dictionary containing all information items.'

def _get_lsb_release_info(self):

    cmd = 'lsb_release    -a'
    process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    (stdout, stderr) = process.communicate()
    (stdout, stderr) = (stdout.decode('utf-8'), stderr.decode('utf-8'))
    code = process.returncode
    if (code == 0):
        content = stdout.splitlines()
        return self._parse_lsb_release_content(content)
    elif (code == 127):
        return {}
    elif (sys.version_info[:2] >= (3, 5)):
        raise subprocess.CalledProcessError(code, cmd, stdout, stderr)
    elif (sys.version_info[:2] >= (2, 7)):
        raise subprocess.CalledProcessError(code, cmd, stdout)
    elif (sys.version_info[:2] == (2, 6)):
        raise subprocess.CalledProcessError(code, cmd)
