Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{Misc.} Remove is_packaged_installed #30276

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -386,15 +386,6 @@ def create_app_config_connection_if_not_exist(cmd, client, source_id, app_config
parameters=parameters)


def is_packaged_installed(package_name):
import pkg_resources
installed_packages = pkg_resources.working_set
# pylint: disable=not-an-iterable
pkg_installed = any((package_name) in d.key.lower()
for d in installed_packages)
return pkg_installed


def get_object_id_of_current_user():
signed_in_user_info = run_cli_cmd('az account show -o json')
if not isinstance(signed_in_user_info, dict):
Expand Down