Skip to content

Commit 6ac10a6

Browse files
committed
✨ feat/remove the possibility to add the same IP address twice in cluster update command
1 parent 573078a commit 6ac10a6

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
@@ -504,7 +504,7 @@ def cluster_update_command(ctx, project_name, cluster_name, description, admin,
504504
raise click.ClickException(f"Unable to resolve 'my-ip': {e}")
505505
else:
506506
resolved_ips.append(ip)
507-
cluster_config['admin_whitelist'] = resolved_ips
507+
cluster_config['admin_whitelist'] = list(dict.fromkeys(resolved_ips))
508508

509509
if version is not None:
510510
cluster_config['version'] = version

0 commit comments

Comments
 (0)