Skip to content

Commit

Permalink
PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-fcampbell committed Sep 17, 2024
1 parent 1e4d947 commit 6370a21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/snowflake/cli/api/entities/application_package_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@ def version_list(package_name: str, package_role: str) -> SnowflakeCursor:
Get all existing versions, if defined, for an application package.
It executes a 'show versions in application package' query and returns all the results.
"""
executor = get_sql_executor()
with executor.use_role(package_role):
sql_executor = get_sql_executor()
with sql_executor.use_role(package_role):
show_obj_query = f"show versions in application package {package_name}"
show_obj_cursor = executor.execute_query(show_obj_query)
show_obj_cursor = sql_executor.execute_query(show_obj_query)

if show_obj_cursor.rowcount is None:
raise SnowflakeSQLExecutionError(show_obj_query)
Expand Down

0 comments on commit 6370a21

Please sign in to comment.