Skip to content

Commit

Permalink
Make tart set --random-serial no-nop for Linux VMs (#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev authored Feb 11, 2025
1 parent 2890dda commit a4edc6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/tart/Commands/Set.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ struct Set: AsyncParsableCommand {
}

#if arch(arm64)
if randomSerial {
let oldPlatform = vmConfig.platform as! Darwin
if randomSerial, let oldPlatform = vmConfig.platform as? Darwin {
vmConfig.platform = Darwin(ecid: VZMacMachineIdentifier(), hardwareModel: oldPlatform.hardwareModel)
}
#endif
Expand Down

0 comments on commit a4edc6a

Please sign in to comment.