Skip to content

Commit

Permalink
changed pam action rotate output to print gateway in use
Browse files Browse the repository at this point in the history
  • Loading branch information
idimov-keeper authored and sk-keeper committed Jan 23, 2025
1 parent 8771b6a commit 411050e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion keepercommander/commands/discover/job_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,4 @@ def execute(self, params, **kwargs):
print(f"To stop and remove the current job, use the command "
f"'{bcolors.OKGREEN}pam action discover remove -j <Job ID>'.")
else:
print_router_response(router_response, conversation_id)
print_router_response(router_response, "job_info", conversation_id, gateway_uid=gateway_context.gateway_uid)
6 changes: 3 additions & 3 deletions keepercommander/commands/discoveryrotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1975,7 +1975,7 @@ def execute(self, params, **kwargs):
message_type=pam_pb2.CMT_GENERAL,
is_streaming=False
)
print_router_response(router_response, conversation_id)
print_router_response(router_response, 'job_info', conversation_id)


class PAMGatewayActionJobCommand(Command):
Expand Down Expand Up @@ -2006,7 +2006,7 @@ def execute(self, params, **kwargs):
destination_gateway_uid_str=gateway_uid
)

print_router_response(router_response, original_conversation_id=conversation_id, response_type='job_info')
print_router_response(router_response, 'job_info', original_conversation_id=conversation_id, gateway_uid=gateway_uid)


class PAMGatewayActionRotateCommand(Command):
Expand Down Expand Up @@ -2156,7 +2156,7 @@ def execute(self, params, **kwargs):
destination_gateway_uid_str=destination_gateway_uid_str
)

print_router_response(router_response, response_type='gateway_info', is_verbose=is_verbose)
print_router_response(router_response, 'gateway_info', is_verbose=is_verbose, gateway_uid=destination_gateway_uid_str)


class PAMGatewayActionDiscoverCommandBase(Command):
Expand Down
8 changes: 4 additions & 4 deletions keepercommander/commands/discoveryrotation_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ def execute(self, params, **kwargs):
message_type=pam_pb2.CMT_GENERAL,
is_streaming=False
)
print_router_response(router_response, conversation_id)
print_router_response(router_response, 'job_info', conversation_id)


class PAMGatewayActionJobCommand(Command):
Expand Down Expand Up @@ -1529,7 +1529,7 @@ def execute(self, params, **kwargs):
destination_gateway_uid_str=gateway_uid
)

print_router_response(router_response, original_conversation_id=conversation_id, response_type='job_info')
print_router_response(router_response, 'job_info', original_conversation_id=conversation_id, gateway_uid=gateway_uid)


class PAMGatewayActionRotateCommand(Command):
Expand Down Expand Up @@ -1629,7 +1629,7 @@ def execute(self, params, **kwargs):
gateway_destination=facade.controller_uid),
message_type=pam_pb2.CMT_ROTATE, is_streaming=False)

print_router_response(router_response, conversation_id)
print_router_response(router_response, 'job_info', conversation_id, gateway_uid=facade.controller_uid)


class PAMGatewayActionServerInfoCommand(Command):
Expand All @@ -1651,7 +1651,7 @@ def execute(self, params, **kwargs):
destination_gateway_uid_str=destination_gateway_uid_str
)

print_router_response(router_response, response_type='gateway_info', is_verbose=is_verbose)
print_router_response(router_response, 'gateway_info', is_verbose=is_verbose, gateway_uid=destination_gateway_uid_str)


class PAMGatewayRemoveCommand(Command):
Expand Down

0 comments on commit 411050e

Please sign in to comment.