(self, cmdp)
return self.STATUS_ERROR
verify: verify an image
        verify <repo/image:tag>
verify: verify an image
        verify <repo/image:tag>
verify : verify an image verify <repo / image : tag >
def do_verify(self, cmdp):
        """
        verify: verify an image
        verify <repo/image:tag>
        """
        (imagerepo, tag) = self._check_imagespec(cmdp.get("P1"))
        if (not imagerepo) or cmdp.missing_options():  # syntax error
            return self.STATUS_ERROR

        Msg().out("Info: verifying: %s:%s" % (imagerepo, tag), l=Msg.INF)
        if not self.localrepo.cd_imagerepo(imagerepo, tag):
            Msg().err("Error: selecting image and tag")
            return self.STATUS_ERROR

        if self.localrepo.verify_image():
            Msg().out("Info: image Ok", l=Msg.INF)
            return self.STATUS_OK

        Msg().err("Error: image verification failure")
        return self.STATUS_ERROR
def do_verify ( self , cmdp ) : ( imagerepo , tag ) = self . _check_imagespec ( cmdp . get ( "P1" ) ) if ( not imagerepo ) or cmdp . missing_options ( ) : # syntax error return self . STATUS_ERROR Msg ( ) . out ( "Info: verifying: %s:%s" % ( imagerepo , tag ) , l = Msg . INF ) if not self . localrepo . cd_imagerepo ( imagerepo , tag ) : Msg ( ) . err ( "Error: selecting image and tag" ) return self . STATUS_ERROR if self . localrepo . verify_image ( ) : Msg ( ) . out ( "Info: image Ok" , l = Msg . INF ) return self . STATUS_OK Msg ( ) . err ( "Error: image verification failure" ) return self . STATUS_ERROR