We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a24291 commit 662dfb9Copy full SHA for 662dfb9
Configuration/UTMAppleConfigurationSystem.swift
@@ -67,6 +67,10 @@ struct UTMAppleConfigurationSystem: Codable {
67
boot = try values.decode(UTMAppleConfigurationBoot.self, forKey: .boot)
68
macPlatform = try values.decodeIfPresent(UTMAppleConfigurationMacPlatform.self, forKey: .macPlatform)
69
genericPlatform = try values.decodeIfPresent(UTMAppleConfigurationGenericPlatform.self, forKey: .genericPlatform)
70
+ if boot.operatingSystem == .linux && genericPlatform == nil {
71
+ // fix a bug where this was not created
72
+ genericPlatform = UTMAppleConfigurationGenericPlatform()
73
+ }
74
}
75
76
func encode(to encoder: Encoder) throws {
0 commit comments