<s> '''<STR_LIT>''' <EOL> from django . core . management . base import NoArgsCommand <EOL> from models import Action , VirtualMachine <EOL> class Command ( NoArgsCommand ) : <EOL> help = "<STR_LIT>" <EOL> def handle_noargs ( self , ** options ) : <EOL> vms_uuid = [ x . uuid for x in VirtualMachine . objects . all ( ) ] <EOL> inconsistent_actions = Action . objects . all ( ) . exclude ( objectUUID__in = vms_uuid ) <EOL> length_inconsistent_actions = len ( inconsistent_actions ) <EOL> inconsistent_actions . delete ( ) <EOL> self . stdout . write ( "<STR_LIT>" % str ( length_inconsistent_actions ) ) </s>
