Skip to content

Commit

Permalink
kube clusterprofile: avoid duplicated apps
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Mar 21, 2024
1 parent c9d8aa4 commit c6098b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kvirt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1859,10 +1859,10 @@ def create_kube(args):
else:
initial_apps = overrides.get('apps', [])
clusterprofile = config.clusterprofiles[clusterprofile]
clusterprofiles_apps = clusterprofile.get('apps', [])
clusterprofile.update(overrides)
overrides = clusterprofile
if 'apps' in overrides:
overrides['apps'].extend(initial_apps)
overrides['apps'] = list(dict.fromkeys(clusterprofiles_apps + initial_apps))
result = config.create_kube(cluster, kubetype, overrides=overrides)
if 'result' in result and result['result'] == 'success':
sys.exit(0)
Expand Down

0 comments on commit c6098b9

Please sign in to comment.