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
154eccef
Commit
154eccef
authored
May 27, 2015
by
Federico Simoncelli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cloudprovider: openstack InstanceID implementation
Signed-off-by:
Federico Simoncelli
<
fsimonce@redhat.com
>
parent
afcda701
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
openstack.go
pkg/cloudprovider/openstack/openstack.go
+7
-1
No files found.
pkg/cloudprovider/openstack/openstack.go
View file @
154eccef
...
...
@@ -368,7 +368,13 @@ func (i *Instances) ExternalID(name string) (string, error) {
// InstanceID returns the cloud provider ID of the specified instance.
func
(
i
*
Instances
)
InstanceID
(
name
string
)
(
string
,
error
)
{
return
""
,
nil
srv
,
err
:=
getServerByName
(
i
.
compute
,
name
)
if
err
!=
nil
{
return
""
,
err
}
// In the future it is possible to also return an endpoint as:
// <endpoint>/<instanceid>
return
"/"
+
srv
.
ID
,
nil
}
func
(
i
*
Instances
)
GetNodeResources
(
name
string
)
(
*
api
.
NodeResources
,
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