We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b10c477 commit b675d47Copy full SHA for b675d47
modules/process_args.py
@@ -154,9 +154,9 @@ def pre_process_args(args, available_reports):
154
# Check to see if creds were provided
155
api_key_file = None
156
lacework_toml_exists = Path(str(Path.home()) + '/.lacework.toml').exists()
157
- env_var_creds_exist = bool(os.environ.get('LW_ACCOUNT')) and\
+ env_var_creds_exist = (bool(os.environ.get('LW_ACCOUNT')) and\
158
bool(os.environ.get('LW_API_KEY')) and\
159
- bool(os.environ.get('LW_API_SECRET'))
+ bool(os.environ.get('LW_API_SECRET'))) or bool(os.environ.get('LW_API_TOKEN'))
160
# If there's an API keyfile specified, try to use it, else exit
161
if args.api_key_file:
162
try:
0 commit comments