Skip to content

Commit ac56f31

Browse files
use proper manager
1 parent 0960a05 commit ac56f31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/snowflake/cli/_plugins/streamlit/streamlit_entity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def deploy(
133133
self.get_deploy_sql(replace=replace, from_stage_name=stage_root)
134134
)
135135

136-
StreamlitManager().grant_privileges(self.model)
136+
StreamlitManager(connection=self._conn).grant_privileges(self.model)
137137

138138
return self.perform(EntityActions.GET_URL, action_context, *args, **kwargs)
139139

@@ -260,4 +260,4 @@ def _deploy_experimental(
260260
force_overwrite=True, # files copied to streamlit vstage need to be overwritten
261261
)
262262

263-
StreamlitManager().grant_privileges(self.model)
263+
StreamlitManager(connection=self._conn).grant_privileges(self.model)

0 commit comments

Comments
 (0)