Skip to content

Fix circular KSM import#2115

Merged
craiglurey merged 2 commits into
Keeper-Security:releasefrom
lthievenaz-keeper:fix-circular-ksm-import
Jun 3, 2026
Merged

Fix circular KSM import#2115
craiglurey merged 2 commits into
Keeper-Security:releasefrom
lthievenaz-keeper:fix-circular-ksm-import

Conversation

@lthievenaz-keeper

Copy link
Copy Markdown
Contributor

Moved KSM, gateway_helper and router_helper into their respective functions to avoid an issue with circular imports when importing commands, eg:
from keepercommander.commands.utils import WhoamiCommand
from keepercommander.commands.discoveryrotation import PAMGatewayListCommand

Moved KSM, gateway_helper and router_helper into their respective functions to avoid an issue with circular imports when importing commands, eg:
`from keepercommander.commands.utils import WhoamiCommand`
`from keepercommander.commands.discoveryrotation import PAMGatewayListCommand`
@lthievenaz-keeper lthievenaz-keeper changed the base branch from master to release June 3, 2026 15:44
KSMCommand import in pam.gateway_helper doesn't point to the core file where KSMCommand is defined. While this doesn't appear to cause an issue, fixed to avoid any future circular import problems.
@craiglurey craiglurey merged commit 163ea38 into Keeper-Security:release Jun 3, 2026
4 checks passed
sk-keeper pushed a commit that referenced this pull request Jun 5, 2026
* Fix circular KSM import

Moved KSM, gateway_helper and router_helper into their respective functions to avoid an issue with circular imports when importing commands, eg:
`from keepercommander.commands.utils import WhoamiCommand`
`from keepercommander.commands.discoveryrotation import PAMGatewayListCommand`

* Changed KSM import in pam.gateway_helper

KSMCommand import in pam.gateway_helper doesn't point to the core file where KSMCommand is defined. While this doesn't appear to cause an issue, fixed to avoid any future circular import problems.
jpkeepersecurity pushed a commit that referenced this pull request Jun 9, 2026
* Fix circular KSM import

Moved KSM, gateway_helper and router_helper into their respective functions to avoid an issue with circular imports when importing commands, eg:
`from keepercommander.commands.utils import WhoamiCommand`
`from keepercommander.commands.discoveryrotation import PAMGatewayListCommand`

* Changed KSM import in pam.gateway_helper

KSMCommand import in pam.gateway_helper doesn't point to the core file where KSMCommand is defined. While this doesn't appear to cause an issue, fixed to avoid any future circular import problems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants