Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asset/cluster: clean up logging messages #840

Merged
merged 1 commit into from
Dec 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/asset/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ func (c *Cluster) Generate(parents asset.Parents) (err error) {
return fmt.Errorf("no known platform")
}

logrus.Infof("Using Terraform to create cluster...")
logrus.Infof("Creating cluster...")
stateFile, err := terraform.Apply(tmpDir, installConfig.Config.Platform.Name())
if err != nil {
err = errors.Wrap(err, "failed to run terraform")
err = errors.Wrap(err, "failed to create cluster")
}

data, err2 := ioutil.ReadFile(stateFile)
Expand Down
2 changes: 0 additions & 2 deletions pkg/destroy/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/openshift/installer/pkg/asset/cluster"
"github.com/openshift/installer/pkg/terraform"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)

// Destroy uses Terraform to remove bootstrap resources.
Expand Down Expand Up @@ -50,7 +49,6 @@ func Destroy(dir string) (err error) {
}
}

logrus.Infof("Using Terraform to destroy bootstrap resources...")
if platform == "libvirt" {
_, err = terraform.Apply(tempDir, platform)
if err != nil {
Expand Down