Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
ab6a330d
Commit
ab6a330d
authored
Jun 14, 2015
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provisioner/*: fix go vet
parent
e1530c39
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
provisioner/powershell/provisioner.go
provisioner/powershell/provisioner.go
+3
-1
provisioner/windows-restart/provisioner_test.go
provisioner/windows-restart/provisioner_test.go
+1
-1
No files found.
provisioner/powershell/provisioner.go
View file @
ab6a330d
...
...
@@ -294,7 +294,9 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
}
}
if
!
validExitCode
{
return
fmt
.
Errorf
(
"Script exited with non-zero exit status: %d. Allowed exit codes are: %s"
,
cmd
.
ExitStatus
,
p
.
config
.
ValidExitCodes
)
return
fmt
.
Errorf
(
"Script exited with non-zero exit status: %d. Allowed exit codes are: %v"
,
cmd
.
ExitStatus
,
p
.
config
.
ValidExitCodes
)
}
}
...
...
provisioner/windows-restart/provisioner_test.go
View file @
ab6a330d
...
...
@@ -234,7 +234,7 @@ func TestProvision_waitForCommunicator(t *testing.T) {
err
:=
waitForCommunicator
(
p
)
if
err
!=
nil
{
t
.
Fatal
(
"should not have error, got: %s"
,
err
.
Error
())
t
.
Fatal
f
(
"should not have error, got: %s"
,
err
.
Error
())
}
expectedCommand
:=
DefaultRestartCheckCommand
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment