-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parallels isolation support #211
Conversation
|
||
func NewVMClonedFrom(ctx context.Context, vmNameFrom string) (*VM, error) { | ||
vm := &VM{ | ||
name: "cirrus-" + uuid.New().String(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use task id so the error message will be self explanatory and not confusing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already there:
cirrus-cli/internal/worker/task.go
Line 50 in ed3e710
worker.logger.Errorf("failed to run task %d: %v", agentAwareTask.TaskId, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But error from prlctl
are propagated to user and these errors contain this unique VM name without the task id.
internal/executor/instance/persistentworker/isolation/parallels/vm.go
Outdated
Show resolved
Hide resolved
internal/executor/instance/persistentworker/isolation/parallels/vm.go
Outdated
Show resolved
Hide resolved
…s/vm.go Co-authored-by: Fedor Korotkov <[email protected]>
…s/vm.go Co-authored-by: Fedor Korotkov <[email protected]>
Resolves #198.