Skip to content

Commit 2e87ac8

Browse files
authored
[RDBMS] enable rdbms-connect extension in Cloud Shell (Azure#21294)
* remove operation limit for rdbms-connect * trigger ci
1 parent 032f72e commit 2e87ac8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/azure-cli-core/azure/cli/core/extension/operations.py

-3
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,6 @@ def _install_deps_for_psycopg2(): # pylint: disable=too-many-statements
213213
distname, _ = get_linux_distro()
214214
distname = distname.lower().strip()
215215
if installer == 'DEB' or any(x in distname for x in ['ubuntu', 'debian']):
216-
from azure.cli.core.util import in_cloud_console
217-
if in_cloud_console():
218-
raise CLIError("This extension is not supported in Cloud Shell as you do not have permission to install extra dependencies.")
219216
exit_code = subprocess.call(['dpkg', '-s', 'gcc', 'libpq-dev', 'python3-dev'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
220217
if exit_code != 0:
221218
logger.warning('This extension depends on gcc, libpq-dev, python3-dev and they will be installed first.')

0 commit comments

Comments
 (0)