File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,7 @@ def update(self, **kwargs):
317317                raise  ValueError (msg )
318318
319319    def  check (self ):
320+         """Check that the settings are valid. Call this method after self.setup().""" 
320321        assert  Path ("/dev/kvm" ).exists (), "KVM not found on `/dev/kvm`." 
321322        assert  isfile (self .FIRECRACKER_PATH ), f"File not found { self .FIRECRACKER_PATH }  
322323        assert  isfile (self .JAILER_PATH ), f"File not found { self .JAILER_PATH }  
@@ -363,6 +364,7 @@ def check(self):
363364            ), "Command `qemu-system-x86_64` not found, run `apt install qemu-system-x86`" 
364365
365366    def  setup (self ):
367+         """Setup the environment defined by the settings. Call this method after loading the settings.""" 
366368        os .makedirs (self .MESSAGE_CACHE , exist_ok = True )
367369        os .makedirs (self .CODE_CACHE , exist_ok = True )
368370        os .makedirs (self .RUNTIME_CACHE , exist_ok = True )
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments