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
8495a8c9
Commit
8495a8c9
authored
Jul 15, 2015
by
Gleb M Borisov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handling IPv6 when ssh_interface set (openstack builder)
parent
a3bf4673
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
builder/openstack/ssh.go
builder/openstack/ssh.go
+5
-1
No files found.
builder/openstack/ssh.go
View file @
8495a8c9
...
...
@@ -101,11 +101,15 @@ func sshAddrFromPool(s *servers.Server, desired string) string {
if
address
[
"OS-EXT-IPS:type"
]
==
"floating"
{
addr
=
address
[
"addr"
]
.
(
string
)
}
else
{
if
address
[
"version"
]
.
(
float64
)
==
4
{
if
address
[
"version"
]
.
(
float64
)
==
6
{
addr
=
fmt
.
Sprintf
(
"[%s]"
,
address
[
"addr"
]
.
(
string
))
}
else
{
addr
=
address
[
"addr"
]
.
(
string
)
}
}
if
addr
!=
""
{
log
.
Printf
(
"[DEBUG] Detected address: %s"
,
addr
)
return
addr
}
}
...
...
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