Skip to content

Commit

Permalink
MGMT-7452: Remove token from assisted-installer-controller log (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsorya committed Aug 5, 2021
1 parent 8c2351a commit 2403dad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ var (
// as a first step it will wait till nodes are added to cluster and update their status to Done

type ControllerConfig struct {
ClusterID string `envconfig:"CLUSTER_ID" required:"true" `
ClusterID string `envconfig:"CLUSTER_ID" required:"true"`
URL string `envconfig:"INVENTORY_URL" required:"true"`
PullSecretToken string `envconfig:"PULL_SECRET_TOKEN" required:"true"`
PullSecretToken string `envconfig:"PULL_SECRET_TOKEN" required:"true" secret:"true"`
SkipCertVerification bool `envconfig:"SKIP_CERT_VERIFICATION" required:"false" default:"false"`
CACertPath string `envconfig:"CA_CERT_PATH" required:"false" default:""`
Namespace string `envconfig:"NAMESPACE" required:"false" default:"assisted-installer"`
Expand Down
2 changes: 1 addition & 1 deletion src/ops/ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func (o *ops) SetBootOrder(device string) error {
}

func (o *ops) ExtractFromIgnition(ignitionPath string, fileToExtract string) error {
o.log.Infof("Getting pull secret from %s", ignitionPath)
o.log.Infof("Getting data from %s", ignitionPath)
ignitionData, err := ioutil.ReadFile(ignitionPath)
if err != nil {
o.log.Errorf("Error occurred while trying to read %s : %e", ignitionPath, err)
Expand Down

0 comments on commit 2403dad

Please sign in to comment.