Only set distribution_release on CoreOS nodes that autoupdate. Fixes #15228

pull/15230/head
Derek Olsen 9 years ago
parent 7de237c5a1
commit 39b16f294c

@ -493,6 +493,7 @@ class Facts(object):
if self.facts['distribution'].lower() == 'coreos': if self.facts['distribution'].lower() == 'coreos':
data = get_file_content('/etc/coreos/update.conf') data = get_file_content('/etc/coreos/update.conf')
if data:
release = re.search("^GROUP=(.*)", data) release = re.search("^GROUP=(.*)", data)
if release: if release:
self.facts['distribution_release'] = release.group(1).strip('"') self.facts['distribution_release'] = release.group(1).strip('"')

Loading…
Cancel
Save