mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 20:42:02 +00:00
fix(m365): add powershell.close() to msgraph services (#7816)
This commit is contained in:
committed by
GitHub
parent
6d00554082
commit
dddec4c688
@@ -17,6 +17,7 @@ All notable changes to the **Prowler SDK** are documented in this file.
|
||||
### Fixed
|
||||
- Fix `m365_powershell test_credentials` to use sanitized credentials. [(#7761)](https://github.com/prowler-cloud/prowler/pull/7761)
|
||||
- Fix `admincenter_users_admins_reduced_license_footprint` check logic to pass when admin user has no license. [(#7779)](https://github.com/prowler-cloud/prowler/pull/7779)
|
||||
- Fix `m365_powershell` to close the PowerShell sessions in msgraph services. [(#7816)](https://github.com/prowler-cloud/prowler/pull/7816)
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -11,6 +11,9 @@ from prowler.providers.m365.m365_provider import M365Provider
|
||||
class AdminCenter(M365Service):
|
||||
def __init__(self, provider: M365Provider):
|
||||
super().__init__(provider)
|
||||
if self.powershell:
|
||||
self.powershell.close()
|
||||
|
||||
self.organization_config = None
|
||||
self.sharing_policy = None
|
||||
if self.powershell:
|
||||
|
||||
@@ -14,6 +14,8 @@ from prowler.providers.m365.m365_provider import M365Provider
|
||||
class Entra(M365Service):
|
||||
def __init__(self, provider: M365Provider):
|
||||
super().__init__(provider)
|
||||
if self.powershell:
|
||||
self.powershell.close()
|
||||
|
||||
loop = get_event_loop()
|
||||
self.tenant_domain = provider.identity.tenant_domain
|
||||
|
||||
@@ -13,6 +13,9 @@ from prowler.providers.m365.m365_provider import M365Provider
|
||||
class SharePoint(M365Service):
|
||||
def __init__(self, provider: M365Provider):
|
||||
super().__init__(provider)
|
||||
if self.powershell:
|
||||
self.powershell.close()
|
||||
|
||||
loop = get_event_loop()
|
||||
self.tenant_domain = provider.identity.tenant_domain
|
||||
attributes = loop.run_until_complete(
|
||||
|
||||
Reference in New Issue
Block a user