Skip to content

Commit 10342b8

Browse files
outscale-rdeoutscale-ykr
authored andcommitted
✨ feat/remove the possibility to add the same IP address twice in cluster update command
1 parent 810425c commit 10342b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oks_cli/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def cluster_update_command(ctx, project_name, cluster_name, description, admin,
508508
raise click.ClickException(f"Unable to resolve 'my-ip': {e}")
509509
else:
510510
resolved_ips.append(ip)
511-
cluster_config['admin_whitelist'] = resolved_ips
511+
cluster_config['admin_whitelist'] = list(dict.fromkeys(resolved_ips))
512512

513513
if version is not None:
514514
cluster_config['version'] = version

0 commit comments

Comments
 (0)