[Agent][Deploy] - cmii deploy template rearrange
This commit is contained in:
@@ -102,7 +102,8 @@ func DeleteByKubectl(applyFilePath string, cmiiEnv string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
log.InfoF("successfully deleted resources in file %s\n%s", applyFilePath, output)
|
||||
log.InfoF("successfully deleted resources in file %s", applyFilePath)
|
||||
fmt.Println(string(output))
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -114,7 +115,7 @@ func ApplyByKubectl(applyFilePath string, cmiiEnv string) bool {
|
||||
cmd.Env = append(os.Environ(), fmt.Sprintf("KUBECONFIG=%s", kubeconfig))
|
||||
output, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
log.ErrorF("failed to apply resources in file %s: %v\n%s", applyFilePath, err, output)
|
||||
log.ErrorF("failed to apply resources in file %s: %v \n %s", applyFilePath, err, output)
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user