So, this problem persists, and it negatively impacts the use of many Puppet modules that rely on the system codename being returned from lsb_release.
To fix it, edit /usr/share/pyshared/lsb_release.py and replace lookup_codename() with this version from Debian Wheezy, and update the v7 entry RELEASE_CODENAME_LOOKUP list.
So, this problem persists, and it negatively impacts the use of many Puppet modules that rely on the system codename being returned from lsb_release.
To fix it, edit /usr/share/ pyshared/ lsb_release. py and replace lookup_codename() with this version from Debian Wheezy, and update the v7 entry RELEASE_ CODENAME_ LOOKUP list.
RELEASE_ CODENAME_ LOOKUP = {
'1.1' : 'buzz',
'1.2' : 'rex',
'1.3' : 'bo',
'2.0' : 'hamm',
'2.1' : 'slink',
'2.2' : 'potato',
'3.0' : 'woody',
'3.1' : 'sarge',
'4.0' : 'etch',
'5.0' : 'lenny',
'6.0' : 'squeeze',
'7' : 'wheezy',
}
def lookup_ codename( release, unknown=None): r'(\d+) \.(\d+) (r(\d+) )?', release)
m = re.match(
if not m:
return unknown
if int(m.group(1)) < 7:
shortrelease = '%s.%s' % m.group(1,2)
shortrelease = '%s' % m.group(1) CODENAME_ LOOKUP. get(shortreleas e, unknown)
else:
return RELEASE_