Example #1
0
 def validkernel( self, kernel ):
     """
     Checks to see if the kernel specified is within 
     the list of current images
     """
     logstr = "HICCUP:validkernel:"
     LOGGER.debug( logstr + "Image Name is: %s" % kernel )
     if not heckle_list_image( session=self.session, name=kernel):
         raise Exception( logstr + "No valid kernel %s" % kernel )
     else:
         return True
Example #2
0
 def validKernel( self, kernel, **kwargs ):
      """
      Checks to see if the kernel specified is within the list of current images
      """
      self.name="valid Kernel"
      #logger.debug("HICCUP: Debug: Make Reservation: validKernel: vals are %s " % self.__dict__ )
      image_name = self.get_image( ret_type=StringType, kernel=kernel )
      logger.debug("HICCUP: Debug: valid Kernel: Image Name is: %s" % image_name )
      
      image_val = heckle_list_image( session=self.session, name=image_name)
      
      return image_val