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
79f40d68
Commit
79f40d68
authored
Sep 09, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13660 from jsafrane/devel/fix-cloud-init
Auto commit by PR queue bot
parents
6f11647c
f7384827
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
plugins.go
pkg/cloudprovider/plugins.go
+3
-2
No files found.
pkg/cloudprovider/plugins.go
View file @
79f40d68
...
...
@@ -65,15 +65,16 @@ func GetCloudProvider(name string, config io.Reader) (Interface, error) {
// InitCloudProvider creates an instance of the named cloud provider.
func
InitCloudProvider
(
name
string
,
configFilePath
string
)
(
Interface
,
error
)
{
var
cloud
Interface
var
err
error
if
name
==
""
{
glog
.
Info
(
"No cloud provider specified."
)
return
nil
,
nil
}
var
err
error
if
configFilePath
!=
""
{
config
,
err
:=
os
.
Open
(
configFilePath
)
var
config
*
os
.
File
config
,
err
=
os
.
Open
(
configFilePath
)
if
err
!=
nil
{
glog
.
Fatalf
(
"Couldn't open cloud provider configuration %s: %#v"
,
configFilePath
,
err
)
...
...
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