def __read_docker_compose(path):
 if (os.path.isfile(os.path.join(path, dc_filename)) is False):
  return __standardize_result(False, 'Path does not exist or docker-compose.yml is not present', None, None)
 f = salt.utils.fopen(os.path.join(path, dc_filename), 'r')
 result = {'docker-compose.yml': ''}
 if f:
  for line in f:
   result['docker-compose.yml'] += line
  f.close()
 else:
  return __standardize_result(False, 'Could not read docker-compose.yml file.', None, None)
 return __standardize_result(True, 'Reading content of docker-compose.yml file', result, None)

def __read_docker_compose ( path ) : if ( os . path . isfile ( os . path . join ( path , dc_filename ) ) is False ) : return __standardize_result ( False , 'Path does not exist or docker-compose.yml is not present' , None , None ) f = salt . utils . fopen ( os . path . join ( path , dc_filename ) , 'r' ) result = { 'docker-compose.yml' : '' } if f : for line in f : result [ 'docker-compose.yml' ] += line f . close ( ) else : return __standardize_result ( False , 'Could not read docker-compose.yml file.' , None , None ) return __standardize_result ( True , 'Reading content of docker-compose.yml file' , result , None )
read the docker-compose .