##// END OF EJS Templates
cli: skip auth plugin search/registry in case of cli invocation for faster execution of those actions....
marcink -
r2652:9e96b80d default
parent child Browse files
Show More
@@ -18,6 +18,7 b''
18 18 # RhodeCode Enterprise Edition, including its added features, Support services,
19 19 # and proprietary license terms, please see https://rhodecode.com/licenses/
20 20
21 import os
21 22 import logging
22 23 import importlib
23 24
@@ -120,6 +121,11 b' def includeme(config):'
120 121 route_name='auth_home',
121 122 context=AuthnRootResource)
122 123
124 for key in ['RC_CMD_SETUP_RC', 'RC_CMD_UPGRADE_DB', 'RC_CMD_SSH_WRAPPER']:
125 if os.environ.get(key):
126 # skip this heavy step below on certain CLI commands
127 return
128
123 129 # Auto discover authentication plugins and include their configuration.
124 130 _discover_plugins(config)
125 131 _discover_legacy_plugins(config)
General Comments 0
You need to be logged in to leave comments. Login now