From a704f2eba464516c0f6b70c7aafaac5beb2e6a23 Mon Sep 17 00:00:00 2001 From: Ayrris Aunario Date: Fri, 2 Aug 2024 14:00:55 -0500 Subject: [PATCH] `enterprise-role`: re-add option to skip confirmation prompts to allow non-interactive batch-scripting --- keepercommander/commands/enterprise.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keepercommander/commands/enterprise.py b/keepercommander/commands/enterprise.py index cced2008d..7cadc54da 100644 --- a/keepercommander/commands/enterprise.py +++ b/keepercommander/commands/enterprise.py @@ -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.') @@ -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'):