From 346fa3f78d8c21975f6a01eedd7d33eeaf9557f7 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Tue, 12 Oct 2021 10:59:20 -0600 Subject: [PATCH] lf_check.py , updated conditional to not use == True Signed-off-by: Chuck SmileyRekiere --- py-scripts/tools/lf_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-scripts/tools/lf_check.py b/py-scripts/tools/lf_check.py index c92ddbfc..062d28e4 100755 --- a/py-scripts/tools/lf_check.py +++ b/py-scripts/tools/lf_check.py @@ -374,7 +374,7 @@ NOTE: Diagrams are links in dashboard""".format(ip_qa=ip,qa_url=qa_url) else: mail_subject = "Regression Test [{hostname}] {date}".format(hostname=hostname, date=datetime.datetime.now()) try: - if self.production_run == True: + if self.production_run: msg = message_txt.format(ip=ip) # for postfix from command line echo "My message" | mail -s subject user@candelatech.com command = "echo \"{message}\" | mail -s \"{subject}\" {address}".format(