]> git.ipfire.org Git - nitsi.git/blobdiff - recipe.py
Recipe: split only at the first occurrence of :
[nitsi.git] / recipe.py
index a520e7ada10aac201401807d31343c68ebee3bff..b7967f735f013694544c490b83260328ee7a7f1a 100644 (file)
--- a/recipe.py
+++ b/recipe.py
@@ -68,7 +68,7 @@ class recipe():
         self._recipe = []
         i = 1
         for line in self.raw_recipe:
-            raw_line = line.split(":")
+            raw_line = line.split(":", 1)
             if len(raw_line) < 2:
                 self.log.error("Error parsing the recipe in line {}".format(i))
                 raise RecipeExeption