Only remove omsconfighost telemetry files
@@ -230,6 +230,7 @@ class Watcher:
except Exception as e:
self._hutil_log("Error parsing telemetry status file: "+sf)
self._hutil_log("Exception info: "+traceback.format_exc())
+ if sf == "/var/opt/microsoft/omsconfig/status/omsconfighost":
try:
os.remove(sf)
except Exception as e:
