summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts/library
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-06-17 15:40:31 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-06-17 15:40:31 -0300
commit9ce7443cefb53a400f5b38ac004c41e1b443635c (patch)
tree57302cfa0495299159b289551d214a6be2fd135a /roles/openshift_facts/library
parentfa8f17557a152cf0da98f66403cfeb65dce68732 (diff)
downloadopenshift-9ce7443cefb53a400f5b38ac004c41e1b443635c.tar.gz
openshift-9ce7443cefb53a400f5b38ac004c41e1b443635c.tar.bz2
openshift-9ce7443cefb53a400f5b38ac004c41e1b443635c.tar.xz
openshift-9ce7443cefb53a400f5b38ac004c41e1b443635c.zip
Fix version facts with trailing newline.
Diffstat (limited to 'roles/openshift_facts/library')
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py2
1 files changed, 1 insertions, 1 deletions
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]