cloudbase / windows-imaging-tools

Tools to automate the creation of a Windows image for OpenStack, supporting KVM, Hyper-V, ESXi and more.
Apache License 2.0
680 stars 227 forks source link

Option extra_features cannot accept multiple features #388

Closed hoppla20 closed 6 months ago

hoppla20 commented 6 months ago

https://github.com/cloudbase/windows-imaging-tools/blob/0130ee5c53ea21b775c7a79548e44473e73fd514/WinImageBuilder.psm1#L1733

https://github.com/cloudbase/windows-imaging-tools/blob/0130ee5c53ea21b775c7a79548e44473e73fd514/WinImageBuilder.psm1#L664-L686

The config option extra_features is passed as is into the Enable-FeatureInImage function, which in turn expects an array. When passing multiple features (e.g. "Microsoft-Hyper-V,Container"), the execution of Enable-FeatureInImage fails because of this.