Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions keepercommander/commands/pam/gateway_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from keeper_secrets_manager_core.utils import url_safe_str_to_bytes

from ... import api, utils
from ...commands.utils import KSMCommand
from ...commands.ksm import KSMCommand
from ...loginv3 import CommonHelperMethods
from ...params import KeeperParams
from ...proto import pam_pb2, enterprise_pb2
Expand Down Expand Up @@ -119,4 +119,4 @@ def edit_gateway(params, gateway_uid, gateway_name, node_id):
rq.controllerName = gateway_name
rq.nodeId = node_id
api.communicate_rest(params, rq, 'pam/modify_controller')


6 changes: 3 additions & 3 deletions keepercommander/commands/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@

from . import record_edit, base, record_totp, record_file_report
from .base import Command, GroupCommand, RecordMixin, FolderMixin, fields_to_titles
from .ksm import KSMCommand
from .pam import gateway_helper
from .pam.router_helper import router_get_connected_gateways
from .. import api, display, crypto, utils, vault, vault_extensions, subfolder, record_types
from ..breachwatch import BreachWatch
from ..display import bcolors
Expand Down Expand Up @@ -1302,6 +1299,8 @@ def display_rotation_info(self, params, r):


def _resolve_gateways_by_pattern(params, pattern):
from .pam import gateway_helper
from .pam.router_helper import router_get_connected_gateways
"""Resolve a `--device` pattern to a list of Gateway controller objects.

Matches both: exact controllerUid AND case-insensitive substring on
Expand Down Expand Up @@ -1372,6 +1371,7 @@ def _find_pam_configs_for_gateway(params, gateway_uid_str):


def _build_gateway_info(c, connected_instances, params, is_router_down, is_verbose):
from .ksm import KSMCommand
"""Build a dict describing one Gateway, suitable for table or JSON rendering."""
gateway_uid_str = utils.base64_url_encode(c.controllerUid)
ksm_app_uid_str = utils.base64_url_encode(c.applicationUid)
Expand Down
Loading