Пример #1
0
    def _disable_outdated_mkps(self) -> None:
        """Disable MKP packages that are declared to be outdated with the new version

        Since 1.6 there is the option version.usable_until available in MKP packages.
        Iterate over all installed packages, check that field and once it is set, compare
        the version with the new Checkmk version. In case it is outdated, move the
        package to the disabled packages.
        """
        packaging.disable_outdated()
Пример #2
0
def package_disable_outdated(args: List[str]) -> None:
    """Disable MKP packages that are declared to be outdated with the new version

    Since 1.6 there is the option version.usable_until available in MKP packages.
    Iterate over all installed packages, check that field and once it is set, compare
    the version with the new Checkmk version. In case it is outdated, move the
    package to the disabled packages.
    """
    if args:
        raise PackageException("Usage: check_mk -P disable-outdated")
    packaging.disable_outdated()