Skip to content

Commit

Permalink
WTF
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pczajka committed Aug 27, 2024
1 parent 3b6e3b4 commit cf28cdb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/snowflake/cli/api/secure_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from pathlib import Path
from typing import List

from snowflake.cli.api.console import cli_console
from snowflake.connector.compat import IS_WINDOWS

log = logging.getLogger(__name__)
Expand Down Expand Up @@ -56,8 +57,9 @@ def windows_get_not_whitelisted_users_with_access(file_path: Path) -> List[str]:

import os

log.warning("OS user: %s", os.getlogin())
log.warning("icacls output: %s", _run_icacls(file_path))
cli_console.warning(f"OS user: {os.getlogin()}")
cli_console.warning(f"icacls output:")
cli_console.message(_run_icacls(file_path))

users_with_access = []
for permission in re.finditer(icacls_output_regex, _run_icacls(file_path)):
Expand Down

0 comments on commit cf28cdb

Please sign in to comment.