[BUG] The `--security-groups` flag is not applied when set by user
- Dominant language
- Python
- Stars
- 3
- Forks
- 4
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 11
Description
### Affected Command
ewc hub deploy --security-groups=
### Describe the issue
Setting the `--security-groups` flag to override the "reasonable" default [set on the catalog](https://github.com/ewcloud/ewc-community-hub/blob/fb954a3af9af5117b67864c1f434e6b93b970e89/items.yaml#L3832) does not work.
Since security group are still not harmonized (just FYI @tomasgonzalo), it is currently not possible to deploy items like the `jupyterhub-flavour` via EWCCLI, despite said Item being annotated as `EWCCLI-compatible` .
### Steps to Reproduce
1. `ewc login` (create a profile on **EWCMF** site)
2. `ewc hub deploy jupyterhub-flavour --flavour-name=2cpu-2gbmem-30gbdisk --image-name=Ubuntu-22.04-20260519071848 --server-name=joro-jupyterhub --security-groups=ssh-https`
### Expected Behavior
The `--security-groups` flag set overrides the `defaultSecurityGroups[*]` catalog metadata and deployment completes successfully .
### Logs or Output
```shell
[08/26/26 05:45:58] INFO Using `default` profile.
[08/26/26 05:45:59] INFO SSH private and public keys are matching! Continuing...
[08/26/26 05:45:59] INFO The item will be deployed on ECMWF side of the EWC.
You selected jupyterhub-flavour item from the EWC Community Hub.
INFO ๐ฆ Classified source 'https://github.com/ewcloud/ewc-flavours.git' as: github
[08/26/26 05:45:59] INFO Git clone item...
INFO โ
Repository is accessible: https://github.com/ewcloud/ewc-flavours
INFO ๐ Main Repository ewc-flavours already exists at /home/ubuntu/.ewccli/outputs/jupyterhub-flavour-2.0.2. Skipping git clone.
INFO The item jupyterhub-flavour uses Ansible Playbook techonology.
INFO Pre deploy server setup starting...
[08/26/26 05:46:00] INFO Name: htcondor, ID: 30e68f44-6d79-4d42-a9bb-e755ae94bb71, Description: Managed by Terraform
INFO Name: ssh-https, ID: 4e5a2365-86f6-4adc-9baa-bdc56f53fccf, Description: security group for ssh, http and https
INFO Name: ssh, ID: 55771bc2-70fe-4921-b786-78d0037ed4bb, Description: security group for ssh, http and https
INFO Name: eumetcast, ID: 5e3552d4-86ac-44a6-86a4-63f969aeb95d, Description: security group for EUMETCAST
INFO Name: ipa, ID: 7f50238e-0d89-47ee-a0e0-832a92e57373, Description: Managed by Terraform
INFO Name: default, ID: 943df7df-fd30-4af2-bce1-1726bbc748b4, Description: Default security group
INFO Name: k8s-rke2-internal-e01505c5c478a892, ID: bdc03b1f-d7d3-48cf-a876-028cc69e1435, Description: k8s-rke2-internal
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Error โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ [Pre deploy server setup] Server creation inputs are not valid: Unknown security group (ssh-http-https). Check list above.. Please check the input parameters and try again. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
has context menu
```
### Environment
Linux
### EWC CLI Version
0.7.0
Contributor guide
Assessment
This issue has not been assessed yet.