Merge pull request #10306 from bugfood/fix-attach
allow attaching guest additions without a communicator
This commit is contained in:
commit
862700b1a5
|
@ -83,9 +83,9 @@ func (c *GuestAdditionsConfig) Prepare(communicatorType string) []error {
|
||||||
fmt.Errorf("guest_additions_mode is invalid. Must be one of: %v", validModes))
|
fmt.Errorf("guest_additions_mode is invalid. Must be one of: %v", validModes))
|
||||||
}
|
}
|
||||||
|
|
||||||
if communicatorType == "none" && c.GuestAdditionsMode != "disable" {
|
if communicatorType == "none" && c.GuestAdditionsMode == "upload" {
|
||||||
errs = append(errs, fmt.Errorf("guest_additions_mode has to be "+
|
errs = append(errs, fmt.Errorf("communicator must not be 'none' "+
|
||||||
"'disable' when communicator = 'none'."))
|
"when guest_additions_mode = 'upload'."))
|
||||||
}
|
}
|
||||||
|
|
||||||
return errs
|
return errs
|
||||||
|
|
Loading…
Reference in New Issue