Revision 2527691a scripts/gnt-os

b/scripts/gnt-os
38 38

  
39 39
    Returns:
40 40
      bool: OS validity status
41
  """
42 41

  
42
  """
43 43
  if isinstance(obj, objects.OS):
44 44
    return True
45 45
  elif isinstance(obj, errors.InvalidOS):
......
56 56

  
57 57
    Returns:
58 58
      string: the name of the OS in question
59
  """
60 59

  
60
  """
61 61
  if _DiagnoseOSValid(obj):
62 62
    return obj.name
63 63
  else:
......
72 72

  
73 73
    Returns:
74 74
      string: a description of the OS status
75
  """
76 75

  
76
  """
77 77
  if _DiagnoseOSValid(obj):
78 78
    return "valid"
79 79
  else:
......
106 106
      map: a map with osnames as keys and as value another map, with nodes as
107 107
           keys and diagnoseobjects as values
108 108
           e.g. {"debian-etch": {"node1": <object>, "node2": <object>}}
109
  """
110 109

  
110
  """
111 111
  all_os = {}
112 112
  for node_name, nr in rlist.iteritems():
113 113
    if not nr:

Also available in: Unified diff