]> git.ipfire.org Git - nitsi.git/commitdiff
Fix syntax and variable name in logging
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 16 May 2018 12:12:02 +0000 (14:12 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 16 May 2018 12:12:02 +0000 (14:12 +0200)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
src/nitsi/recipe.py

index 56f1e755e63161a941f93626ca428679b6d42710..7872aa332e593ccda9fdebf54eeeb59b93a0d1d3 100644 (file)
@@ -39,13 +39,13 @@ class recipe():
 
         if not os.path.isfile(self.recipe_file):
             self.log.error("{} is not a file".format(self.recipe_file))
 
         if not os.path.isfile(self.recipe_file):
             self.log.error("{} is not a file".format(self.recipe_file))
-            raise RecipeExeption("{} is not a file".format(self.recipe_file)())
+            raise RecipeExeption("{} is not a file".format(self.recipe_file))
 
         try:
             with open(self.recipe_file) as fobj:
                 self.raw_recipe = fobj.readlines()
         except FileNotFoundError as error:
 
         try:
             with open(self.recipe_file) as fobj:
                 self.raw_recipe = fobj.readlines()
         except FileNotFoundError as error:
-            self.log.error("No such file: {}".format(vm_xml_file))
+            self.log.error("No such file: {}".format(self.recipe_file))
             raise error
 
     @property
             raise error
 
     @property