Revision 5d0fe286 lib/backend.py

b/lib/backend.py
916 916
    detail = str(err)
917 917
  return detail
918 918

  
919

  
919 920
def _OSSearch(name, search_path=None):
920 921
  """Search for OSes with the given name in the search_path.
921 922

  
......
927 928
    The base_dir the OS resides in
928 929

  
929 930
  """
930

  
931 931
  if search_path is None:
932 932
    search_path = constants.OS_SEARCH_PATH
933 933

  
......
938 938

  
939 939
  return None
940 940

  
941

  
941 942
def _OSOndiskVersion(name, os_dir):
942 943
  """Compute and return the API version of a given OS.
943 944

  
......
948 949
  case when this is not a valid OS name.
949 950

  
950 951
  """
951

  
952 952
  api_file = os.path.sep.join([os_dir, "ganeti_api_version"])
953 953

  
954 954
  try:

Also available in: Unified diff