Skip to content

Commit

Permalink
enterprise-role: re-add option to skip confirmation prompts to allo…
Browse files Browse the repository at this point in the history
…w non-interactive batch-scripting
  • Loading branch information
aaunario-keeper authored and sk-keeper committed Aug 2, 2024
1 parent 3c51c98 commit 3821d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keepercommander/commands/enterprise.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def register_command_info(aliases, command_info):


enterprise_role_parser = argparse.ArgumentParser(prog='enterprise-role', description='Manage an enterprise role(s).')
#enterprise_role_parser.add_argument('-f', '--force', dest='force', action='store_true', help='do not prompt for confirmation')
enterprise_role_parser.add_argument('-f', '--force', dest='force', action='store_true', help='do not prompt for confirmation')
enterprise_role_parser.add_argument('-v', '--verbose', dest='verbose', action='store_true', help='print ids')
enterprise_role_parser.add_argument('--format', dest='format', action='store', choices=['text', 'json'],
default='table', help='output format.')
Expand Down Expand Up @@ -2072,7 +2072,7 @@ def execute(self, params, **kwargs):

if add_user or remove_user:
request_batch += self.get_role_users_change_batch(
params, matched_roles, add_user, remove_user
params, matched_roles, add_user, remove_user, kwargs.get('force')
)

elif kwargs.get('enforcements'):
Expand Down

0 comments on commit 3821d91

Please sign in to comment.