K6hfdZddlZddlZddlmZejeZdefdZ ddddZ d Z dS) u  This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program.  If not, see . Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see N) ConfigFilereturncttjdtjdgS)z"True if old Patchman was activatedz"/etc/patchman/license/patchman.crtz"/etc/patchman/license/patchman.key)allospathisfileX/opt/imunify360/venv/lib/python3.11/site-packages/imav/migrations/004_patchman_client.py_patchman_enabledr s?  GNN? @ @ GNN? @ @   r F)fake config_filec|rdStx}rv|p t}|d}|di}|dd||dd<||ddSdS)NF) normalizePATCHMANenable)validate)r rconfig_to_dict setdefaultdict_to_config)rr___enabledconfpatchmans r migrater)s #%%%w 9!1Z\\ ))E)::??:r22He,,,%,Z"""4%"88888 9 9r cdS)Nr )rrs r rollbackr<sDr ) __doc__loggingr defence360agent.contracts.configr getLogger__name__loggerboolr rrr r r r's* 777777  8 $ $499999&     r