diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2016-06-17 15:40:31 -0300 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2016-06-17 15:40:31 -0300 |
commit | 9ce7443cefb53a400f5b38ac004c41e1b443635c (patch) | |
tree | 57302cfa0495299159b289551d214a6be2fd135a /roles/openshift_facts/library | |
parent | fa8f17557a152cf0da98f66403cfeb65dce68732 (diff) | |
download | openshift-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-x | roles/openshift_facts/library/openshift_facts.py | 2 |
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] |