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
031c2515
Commit
031c2515
authored
Aug 12, 2014
by
Marc Abramowitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openstack builder error out when gets blank keypair
parent
a5bc5bec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
builder/openstack/step_key_pair.go
builder/openstack/step_key_pair.go
+4
-0
No files found.
builder/openstack/step_key_pair.go
View file @
031c2515
...
...
@@ -29,6 +29,10 @@ func (s *StepKeyPair) Run(state multistep.StateBag) multistep.StepAction {
state
.
Put
(
"error"
,
fmt
.
Errorf
(
"Error creating temporary keypair: %s"
,
err
))
return
multistep
.
ActionHalt
}
if
keyResp
.
PrivateKey
==
""
{
state
.
Put
(
"error"
,
fmt
.
Errorf
(
"The temporary keypair returned was blank"
))
return
multistep
.
ActionHalt
}
// If we're in debug mode, output the private key to the working
// directory.
...
...
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