Skip to content

Commit

Permalink
fix(wizard): check also for plugin_available to filter disabled plugi…
Browse files Browse the repository at this point in the history
…ns (#1436)
  • Loading branch information
hgw77 authored Oct 21, 2024
1 parent 775bac8 commit 3c46cbf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,15 @@ def get_project_id
end

def check_wizard_status

# disable wizard for cloud_admin project
return if %w[ccadmin cloud_admin].include?(@scoped_domain_name)

# for all services that implements a wizard integration do
# check the order in /elektra/plugins/identity/spec/controllers/projects_controller_spec.rb
service_names =
%w[masterdata_cockpit networking].keep_if do |name|
services.available?(name.to_sym)
services.available?(name.to_sym) && plugin_available?(name)
end

# ProjectProfile /elektra/app/models
Expand Down Expand Up @@ -294,7 +295,7 @@ def load_and_update_wizard_status
if service_name == "sharding"
logger.info "sharding is no service"
else
next unless services.available?(service_name.to_sym)
next unless services.available?(service_name.to_sym) && plugin_available?(service_name)
end
# set instance variable service available to true
instance_variable_set("@#{service_name}_service_available", true)
Expand Down

0 comments on commit 3c46cbf

Please sign in to comment.