James Hewitt
b1e4d4b714
Only clear out security groups if the parameter is set
...
Because security groups are associated with ports not servers, this is a tricky UX.
When creating a server, security groups are applied to any new ports created but not existing ports because they haven't been interrogated yet. When updating a server, the security groups for all attached ports are updated. Because we have an empty list as default, this means if you don't specify security groups on the server (because you're setting them on the port instead), then server creation will work fine, but update will clear out the groups from the port.
This patch changes the default groups for the server resource to be None, so that we can tell if the user doesn't specify any groups and if they don't, rely on the ports having them set instead. It improves idempotency.
Closes-Bug: #2137488
Change-Id: Iedcc9a34dc5ac847496eab19880189e4dc3c517a
Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com >
2026-01-07 15:12:23 +00:00
..
2020-01-17 14:07:24 +00:00
2023-02-21 13:07:29 +01:00
2024-06-26 01:57:55 +00:00
2023-01-16 13:51:01 +01:00
2023-03-28 12:05:38 +00:00
2023-01-16 13:51:01 +01:00
2023-02-21 13:07:29 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2024-10-09 20:56:10 +00:00
2023-01-31 19:52:19 +01:00
2023-03-14 18:43:35 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-31 19:52:01 +01:00
2025-04-23 16:14:59 +00:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-26 13:35:27 +01:00
2023-01-26 13:35:27 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-03-05 09:41:42 +00:00
2023-01-26 13:36:30 +01:00
2023-01-16 13:51:01 +01:00
2023-01-26 13:34:06 +01:00
2023-01-26 13:34:06 +01:00
2023-01-26 13:34:33 +01:00
2023-01-26 13:34:33 +01:00
2023-01-26 13:34:53 +01:00
2023-01-26 13:34:53 +01:00
2023-01-26 13:35:09 +01:00
2024-10-09 20:54:02 +00:00
2023-01-16 13:51:01 +01:00
2025-08-26 12:04:42 +00:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2024-11-03 12:15:11 +00:00
2023-02-21 13:07:29 +01:00
2024-06-19 13:43:24 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2024-11-05 10:32:08 +03:30
2024-10-09 08:57:18 +11:00
2025-01-24 10:43:18 +13:00
2024-10-09 08:53:28 +11:00
2023-01-16 13:51:01 +01:00
2024-12-19 19:01:22 +00:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2025-01-09 13:45:19 +00:00
2025-04-22 16:30:58 +03:00
2023-01-26 09:34:30 +01:00
2023-01-26 09:34:30 +01:00
2025-04-23 09:21:43 -05:00
2025-04-22 16:28:02 +00:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-02-23 21:20:51 +01:00
2023-09-01 17:53:32 +00:00
2025-04-23 18:18:48 +01:00
2023-01-16 13:51:01 +01:00
2024-06-25 09:27:32 +00:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2026-01-07 15:12:23 +00:00
2025-10-08 20:51:26 +00:00
2025-10-08 20:51:26 +00:00
2025-04-24 22:45:15 +00:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2025-04-22 18:25:52 +00:00
2023-01-16 13:51:01 +01:00
2025-01-14 10:34:50 +01:00
2024-10-09 14:35:52 +00:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2023-01-16 13:51:01 +01:00
2025-05-31 09:46:52 -04:00
2024-11-04 13:54:15 +00:00
2023-01-16 13:51:01 +01:00
2023-02-21 13:07:29 +01:00
2023-01-16 13:51:01 +01:00
2023-08-21 08:43:23 +02:00
2023-08-16 16:35:51 +02:00
2023-08-16 16:35:51 +02:00
2023-01-16 13:51:01 +01:00