diff --git a/archiver.py b/archiver.py index fba6868..d4c3fb8 100644 --- a/archiver.py +++ b/archiver.py @@ -79,8 +79,9 @@ class Archiver(object): "Manifest for {0} service has no file definitions for " "{1}").format(manifest.service_display_name, data_type) - with tarfile.open("sample.tar", "w") as tar: - tar.add(temp_dir) + with tarfile.open("service_metadata.tar", "w") as tar: + for item in os.listdir(temp_dir): + tar.add(os.path.join(temp_dir, item), item) try: shutil.rmtree(temp_dir, ignore_errors=True) except Exception as e: