diff --git a/scripts/gnt-os b/scripts/gnt-os
index a13d2ca894d9b10bb3914fb4f97b20c32d938cd2..d422a1dcb237ae27f89201d5d46edc780fc482e7 100755
--- a/scripts/gnt-os
+++ b/scripts/gnt-os
@@ -75,9 +75,25 @@ def _DiagnoseOSStatus(obj):
   """
 
   if _DiagnoseOSValid(obj):
-    return "valid (path: %s)" % obj.path
+    return "valid"
   else:
-    return "%s (path: %s)" % (obj.args[2], obj.args[1])
+    return obj.args[2]
+
+
+def _DiagnoseOSPath(obj):
+  """Get the path out of an OS diagnose object.
+
+    Args:
+      obj: an diagnostic object as returned by OpDiagnoseOS
+
+    Returns:
+      string: the OS path
+
+  """
+  if _DiagnoseOSValid(obj):
+    return obj.path
+  else:
+    return obj.args[1]
 
 
 def _DiagnoseByOS(rlist):