We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff56025 commit c171605Copy full SHA for c171605
services/tasks/LocalJob_inventory.go
@@ -45,7 +45,7 @@ func (t *LocalJob) tmpInventoryFilename() string {
45
}
46
47
func (t *LocalJob) tmpInventoryFullPath() string {
48
- if t.Inventory.Repository.GetType() == db.RepositoryLocal {
+ if t.Inventory.Repository != nil && t.Inventory.Repository.GetType() == db.RepositoryLocal {
49
return t.Inventory.Repository.GetGitURL(true)
50
51
pathname := path.Join(util.Config.GetProjectTmpDir(t.Template.ProjectID), t.tmpInventoryFilename())
0 commit comments