Skip to content

Commit

Permalink
Change safety verification condition so if not set to on but any othe…
Browse files Browse the repository at this point in the history
…r value than off the safety is activated
  • Loading branch information
zoldax committed Oct 13, 2023
1 parent db87b53 commit 2565a72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"ip_QRadar": "192.168.10.145",
"ip_QRadar": "192.168.10.146",
"auth": "a913b05c-cb81-4d2f-b286-2572f0c4baee",
"Version": "17.0",
"Accept": "application/json",
"verify_ssl": "True",
"ssl_cert_path": "./serverchain.pem",
"verify_ssl": "False",
"ssl_cert_path": "./aserverchain.pem",
"safety": "on"
}
2 changes: 1 addition & 1 deletion qradarzoldaxclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def import_csv_to_qradar(self, csv_filename: str) -> Union[bool, int]:
"""
Import data from the given CSV file to QRadar via the API.
"""
if 'safety' in qradarzoldaxlib.config and qradarzoldaxlib.config['safety'].lower() == "on":
if 'safety' in qradarzoldaxlib.config and qradarzoldaxlib.config['safety'].lower() != "off":
backup_success = self.backup_current_hierarchy()

if not backup_success:
Expand Down

0 comments on commit 2565a72

Please sign in to comment.