diff --git a/integrate_into_manifest.py b/integrate_into_manifest.py
index 7ef8ed9d3f4c8180472e7631b78e824cd079695b..223c5ffaef4c5b3d37e327c669cd12971c0ddce1 100755
--- a/integrate_into_manifest.py
+++ b/integrate_into_manifest.py
@@ -163,7 +163,7 @@ def integrate_into_manifest(
                     "no recipe name is specified" % project.path
                 )
             with open(srcrev_filepath.as_posix(), "w", encoding="utf8") as fp:
-                fp.write(new_manifest)
+                fp.write(new_srcrev)
             manifest_repo.index.add([srcrev_file])
 
         # Make an API request to create the gitlab.user object