Преглед изворни кода

Fix version facts with trailing newline.

Devan Goodwin пре 8 година
родитељ
комит
9ce7443cef
1 измењених фајлова са 1 додато и 1 уклоњено
  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]