Example #1
0
 def post(self, command, output_dir, vars):
     HostBaseTemplate.post(self, command, output_dir, vars)
     if not vars["conf_is_versioned"]:
         copy_tree(
             os.path.join(os.path.dirname(__file__), "tmpl/base/bsd_etc_base/etc"),
             os.path.join(output_dir, "files/etc"),
         )
Example #2
0
 def post(self, command, output_dir, vars):
     HostBaseTemplate.post(self, command, output_dir, vars)
     if not vars["has_vm"]:
         path = os.path.join(output_dir, "vms")
         if os.path.exists(path):
             rmtree(path)