diff --git a/m365/agent_based/m365_group_based_licensing.py b/m365/agent_based/m365_group_based_licensing.py index 7c624a5..3373df2 100644 --- a/m365/agent_based/m365_group_based_licensing.py +++ b/m365/agent_based/m365_group_based_licensing.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8; py-indent-offset: 4; max-line-length: 100 -*- -# Copyright (C) 2025 Christopher Pommer +# Copyright (C) 2024, 2025 Christopher Pommer # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -73,7 +73,7 @@ def discover_m365_group_based_licensing(section: Section) -> DiscoveryResult: def check_m365_group_based_licensing(section: Section) -> CheckResult: groups = section - if groups is None: + if not groups: yield Result( state=State.OK, summary="No groups with errors", diff --git a/m365/agent_based/m365_licenses.py b/m365/agent_based/m365_licenses.py index 782b223..f521f54 100644 --- a/m365/agent_based/m365_licenses.py +++ b/m365/agent_based/m365_licenses.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8; py-indent-offset: 4; max-line-length: 100 -*- -# Copyright (C) 2025 Christopher Pommer +# Copyright (C) 2024, 2025 Christopher Pommer # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/m365/agent_based/m365_service_health.py b/m365/agent_based/m365_service_health.py index 4dded3d..a408362 100644 --- a/m365/agent_based/m365_service_health.py +++ b/m365/agent_based/m365_service_health.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8; py-indent-offset: 4; max-line-length: 100 -*- -# Copyright (C) 2025 Christopher Pommer +# Copyright (C) 2024, 2025 Christopher Pommer # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/m365/graphing/m365_licenses.py b/m365/graphing/m365_licenses.py index cdb9a82..aa50827 100644 --- a/m365/graphing/m365_licenses.py +++ b/m365/graphing/m365_licenses.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8; py-indent-offset: 4; max-line-length: 100 -*- -# Copyright (C) 2025 Christopher Pommer +# Copyright (C) 2024, 2025 Christopher Pommer # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/m365/graphing/m365_service_health.py b/m365/graphing/m365_service_health.py index 1cfb5f8..956470b 100644 --- a/m365/graphing/m365_service_health.py +++ b/m365/graphing/m365_service_health.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8; py-indent-offset: 4; max-line-length: 100 -*- -# Copyright (C) 2025 Christopher Pommer +# Copyright (C) 2024, 2025 Christopher Pommer # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/m365/libexec/agent_m365 b/m365/libexec/agent_m365 index 3e9d8f6..daed7b6 100644 --- a/m365/libexec/agent_m365 +++ b/m365/libexec/agent_m365 @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8; py-indent-offset: 4; max-line-length: 100 -*- -# Copyright (C) 2025 Christopher Pommer +# Copyright (C) 2024, 2025 Christopher Pommer # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/m365/rulesets/m365.py b/m365/rulesets/m365.py index f81a6ef..0804e7f 100644 --- a/m365/rulesets/m365.py +++ b/m365/rulesets/m365.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8; py-indent-offset: 4; max-line-length: 100 -*- -# Copyright (C) 2025 Christopher Pommer +# Copyright (C) 2024, 2025 Christopher Pommer # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/m365/rulesets/m365_licenses.py b/m365/rulesets/m365_licenses.py index a3bae19..1819ae5 100644 --- a/m365/rulesets/m365_licenses.py +++ b/m365/rulesets/m365_licenses.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8; py-indent-offset: 4; max-line-length: 100 -*- -# Copyright (C) 2025 Christopher Pommer +# Copyright (C) 2024, 2025 Christopher Pommer # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/m365/rulesets/m365_service_health.py b/m365/rulesets/m365_service_health.py index 13fd5d0..a2226dd 100644 --- a/m365/rulesets/m365_service_health.py +++ b/m365/rulesets/m365_service_health.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8; py-indent-offset: 4; max-line-length: 100 -*- -# Copyright (C) 2025 Christopher Pommer +# Copyright (C) 2024, 2025 Christopher Pommer # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License diff --git a/m365/server_side_calls/m365.py b/m365/server_side_calls/m365.py index 63d5a7b..62c0747 100644 --- a/m365/server_side_calls/m365.py +++ b/m365/server_side_calls/m365.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8; py-indent-offset: 4; max-line-length: 100 -*- -# Copyright (C) 2025 Christopher Pommer +# Copyright (C) 2024, 2025 Christopher Pommer # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -24,7 +24,7 @@ from pydantic import BaseModel -from typing import Optional, Iterator, List +from typing import Iterator, List, Optional from cmk.server_side_calls.v1 import ( EnvProxy,