Browse Source

Fix version facts with trailing newline.

Devan Goodwin 8 years ago
parent
commit
9ce7443cef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/openshift_facts/library/openshift_facts.py

+ 1 - 1
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]