File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 7
7
"errors"
8
8
"fmt"
9
9
"io"
10
+ "log"
10
11
"os"
11
12
12
13
"github.com/goccy/go-yaml"
@@ -85,7 +86,7 @@ func (p Provisioner) do(data []byte) error {
85
86
}
86
87
87
88
if err != nil {
88
- return fmt .Errorf ("cannot unmarshal yaml: %w" , err )
89
+ return fmt .Errorf ("cannot unmarshal yaml for provisioning file : %w" , err )
89
90
}
90
91
91
92
if rawYaml == nil {
@@ -99,13 +100,14 @@ func (p Provisioner) do(data []byte) error {
99
100
continue
100
101
}
101
102
if err != nil {
102
- return fmt .Errorf ("cannot provision resource from yaml: %w" , err )
103
+ return fmt .Errorf ("cannot provision resource from yaml for provisioner %T : %w" , p , err )
103
104
}
105
+ log .Printf ("[provisioning] provisioner %T executed with success" , p )
104
106
success = true
105
107
}
106
108
107
109
if ! success {
108
- return fmt .Errorf ("invalid resource type from yaml" )
110
+ return fmt .Errorf ("all resource types from provisioning yaml don't support provisioning " )
109
111
}
110
112
}
111
113
return nil
You can’t perform that action at this time.
0 commit comments