]> git.proxmox.com Git - proxmox-backup.git/blobdiff - src/bin/proxmox-backup-client.rs
src/backup/manifest.rs: cleanup signature generation
[proxmox-backup.git] / src / bin / proxmox-backup-client.rs
index 6794068bd60c6b515404eef4ba05a423235b2ab9..7c6a05cb38f5265ec87507807908294a210cb1ee 100644 (file)
@@ -1081,16 +1081,14 @@ async fn create_backup(
     }
 
     // create manifest (index.json)
-    let manifest = manifest.into_json(crypt_config.as_ref().map(Arc::as_ref));
-
-    println!("Upload index.json to '{:?}'", repo);
-    let manifest = serde_json::to_string_pretty(&manifest)?.into();
-
     // manifests are never encrypted, but include a signature
-    // fixme: sign manifest
+    let manifest = manifest.into_string(crypt_config.as_ref().map(Arc::as_ref))
+        .map_err(|err| format_err!("unable to format manifest - {}", err))?;
 
+
+    println!("Upload index.json to '{:?}'", repo);
     client
-        .upload_blob_from_data(manifest, MANIFEST_BLOB_NAME, true, false)
+        .upload_blob_from_data(manifest.into_bytes(), MANIFEST_BLOB_NAME, true, false)
         .await?;
 
     client.finish().await?;