Open alexlovelltroy opened 1 day ago
Would this simply require exporting the groups
field and adding field tag to this line?
https://github.com/OpenCHAMI/cloud-init/blob/main/internal/memstore/ciMemStore.go#L24
So something like:
type MemStore struct {
list map[string]citypes.CI
Groups map[string]citypes.GroupData `json:"groups,omitempty"`
}
After adding a group to the cloud-init server that only contains user-data information (and not meta-data) information, the group ends up represented in the meta-data anyway as a key and empty list.
In the above example
ssh
should not be listed if it is empty.groups
should also not be listed if it is empty.