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
9beac8d2
Commit
9beac8d2
authored
May 01, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provisioner/chef-client: proper ordering of args [GH-1100]
parent
3a68c8aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
provisioner/chef-client/provisioner.go
provisioner/chef-client/provisioner.go
+2
-2
No files found.
provisioner/chef-client/provisioner.go
View file @
9beac8d2
...
...
@@ -342,7 +342,7 @@ func (p *Provisioner) createDir(ui packer.Ui, comm packer.Communicator, dir stri
func
(
p
*
Provisioner
)
cleanNode
(
ui
packer
.
Ui
,
comm
packer
.
Communicator
,
node
string
)
error
{
ui
.
Say
(
"Cleaning up chef node..."
)
app
:=
"knife node delete -y "
+
node
app
:=
fmt
.
Sprintf
(
"knife node delete %s -y"
,
node
)
cmd
:=
exec
.
Command
(
"sh"
,
"-c"
,
app
)
out
,
err
:=
cmd
.
Output
()
...
...
@@ -358,7 +358,7 @@ func (p *Provisioner) cleanNode(ui packer.Ui, comm packer.Communicator, node str
func
(
p
*
Provisioner
)
cleanClient
(
ui
packer
.
Ui
,
comm
packer
.
Communicator
,
node
string
)
error
{
ui
.
Say
(
"Cleaning up chef client..."
)
app
:=
"knife client delete -y "
+
node
app
:=
fmt
.
Sprintf
(
"knife client delete %s -y"
,
node
)
cmd
:=
exec
.
Command
(
"sh"
,
"-c"
,
app
)
out
,
err
:=
cmd
.
Output
()
...
...
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