diff options
Diffstat (limited to 'resources/tools/presentation/generator_alerts.py')
-rw-r--r-- | resources/tools/presentation/generator_alerts.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/resources/tools/presentation/generator_alerts.py b/resources/tools/presentation/generator_alerts.py index 77302b6168..cbdb1fd07b 100644 --- a/resources/tools/presentation/generator_alerts.py +++ b/resources/tools/presentation/generator_alerts.py @@ -268,10 +268,11 @@ class Alerting(object): if zip_file: logging.info("Writing the file '{0}/{1}' ...". format(config["output-dir"], zip_file)) - execute_command("tar czvf {dir}/{zip} {dir}/{input}.*".format( - dir=config["output-dir"], - zip=zip_file, - input=config["output-file"])) + execute_command("tar czvf {dir}/{zip} --directory={dir} " + "{input}.txt {input}.html". + format(dir=config["output-dir"], + zip=zip_file, + input=config["output-file"])) else: raise AlertingError("Alert of type '{0}' is not implemented.". format(alert["type"])) |