lf_check.py : create the meta.txt if it does not exist

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-09-08 20:48:33 -06:00
parent a1c739701e
commit d7e3810867

View File

@@ -1153,7 +1153,7 @@ http://{blog}:2368""".format(blog=self.blog_host_ghost)
break
stdout_log_fd.close()
if meta_data_path != "":
meta_data_fd = open(meta_data_path,'w')
meta_data_fd = open(meta_data_path,'w+')
meta_data_fd.write('$ Generated by Candela Technologies LANforge network testing tool\n')
meta_data_fd.write('$ meta.txt file location\n')
meta_data_fd.write("file {path}\n".format(path=meta_data_path))