Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
4c4b4261
Commit
4c4b4261
authored
Feb 11, 2015
by
roberthbailey
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4354 from simon3z/master
ovirt: fix IPAddress lookup implementation
parents
0194ed85
45bc19be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ovirt.go
pkg/cloudprovider/ovirt/ovirt.go
+5
-1
No files found.
pkg/cloudprovider/ovirt/ovirt.go
View file @
4c4b4261
...
@@ -117,7 +117,11 @@ func (v *OVirtCloud) Zones() (cloudprovider.Zones, bool) {
...
@@ -117,7 +117,11 @@ func (v *OVirtCloud) Zones() (cloudprovider.Zones, bool) {
// IPAddress returns the address of a particular machine instance
// IPAddress returns the address of a particular machine instance
func
(
v
*
OVirtCloud
)
IPAddress
(
instance
string
)
(
net
.
IP
,
error
)
{
func
(
v
*
OVirtCloud
)
IPAddress
(
instance
string
)
(
net
.
IP
,
error
)
{
// since the instance now is the IP in the ovirt env, this is trivial no-op
// since the instance now is the IP in the ovirt env, this is trivial no-op
return
net
.
ParseIP
(
instance
),
nil
ip
,
err
:=
net
.
LookupIP
(
instance
)
if
err
!=
nil
||
len
(
ip
)
<
1
{
return
nil
,
fmt
.
Errorf
(
"cannot find ip address for: %s"
,
instance
)
}
return
ip
[
0
],
nil
}
}
func
getInstancesFromXml
(
body
io
.
Reader
)
([]
string
,
error
)
{
func
getInstancesFromXml
(
body
io
.
Reader
)
([]
string
,
error
)
{
...
...
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