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 56f1e75..7872aa3 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))
-            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:
-            self.log.error("No such file: {}".format(vm_xml_file))
+            self.log.error("No such file: {}".format(self.recipe_file))
             raise error
 
     @property