Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
812e1210
Commit
812e1210
authored
Jan 26, 2016
by
Brendan Melville
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #187 from vaikas-google/master
Handle deploy correctly for local files vs. templates
parents
04076483
f632036e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
dm.go
dm/dm.go
+5
-3
No files found.
dm/dm.go
View file @
812e1210
...
...
@@ -375,14 +375,16 @@ func loadTemplate(args []string) *common.Template {
}
}
}
else
{
if
len
(
args
)
<
3
{
// See if the first argument is a local file. It could either be a type, or it could be a configuration. If
// it's a local file, it's configuration.
if
_
,
err
:=
os
.
Stat
(
args
[
1
]);
err
==
nil
{
template
,
err
=
expander
.
NewTemplateFromFileNames
(
args
[
1
],
args
[
2
:
])
}
else
{
if
t
,
err
:=
registry
.
ParseType
(
args
[
1
]);
err
==
nil
{
template
=
buildTemplateFromType
(
t
)
}
else
{
template
,
err
=
expander
.
NewTemplateFromRootTemplate
(
args
[
1
])
}
}
else
{
template
,
err
=
expander
.
NewTemplateFromFileNames
(
args
[
1
],
args
[
2
:
])
}
if
err
!=
nil
{
...
...
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