From 9ce7443cefb53a400f5b38ac004c41e1b443635c Mon Sep 17 00:00:00 2001 From: Devan Goodwin Date: Fri, 17 Jun 2016 15:40:31 -0300 Subject: Fix version facts with trailing newline. --- roles/openshift_facts/library/openshift_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/openshift_facts') diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py index 62d478bfc..43cca90d6 100755 --- a/roles/openshift_facts/library/openshift_facts.py +++ b/roles/openshift_facts/library/openshift_facts.py @@ -1161,7 +1161,7 @@ def get_containerized_openshift_version(facts): with open(env_file) as f: for line in f: if line.startswith("IMAGE_VERSION="): - tag = line[len("IMAGE_VERSION="):] + tag = line[len("IMAGE_VERSION="):].strip() # Remove leading "v" and any trailing release info, we just want # a version number here: version = tag[1:].split("-")[0] -- cgit v1.2.3