Skip to content
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
15 changes: 14 additions & 1 deletion scripts/wrappers/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ def is_community_addon(arch, addon_name):


def get_available_addons(arch):
"""Get available addons from file in ${SNAP_COMMON}/addons/core/addons.yaml file.

:param arch: current architecture

"""
available = []
strict = is_strict()
for dir in os.listdir(snap_common() / "addons"):
Expand Down Expand Up @@ -558,7 +563,15 @@ def is_enabled(addon, item):
return os.path.isfile(filepath)


def get_status(available_addons, isReady):
def get_status(available_addons :list, isReady :bool):
"""
Get status for all available_addons based on the 'check_status' value in addons.yaml file.

:param available_addons: list of available addons
:param isReady: cluster ready status


"""
enabled = []
disabled = []
if isReady:
Expand Down
Loading