Skip to content

Commit

Permalink
chore: typos and error checking style
Browse files Browse the repository at this point in the history
  • Loading branch information
YrrepNoj committed Jan 27, 2025
1 parent 2499605 commit d1cfe70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions src/cmd/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,11 @@ var extractCmd = &cobra.Command{

if bundleCfg.IsTofu {
_, _, _, err = bndlClient.PreDeployValidationTF()
if err != nil {
return err
}
} else {
_, _, _, err = bndlClient.PreDeployValidation()
if err != nil {
return err
}
}
if err != nil {
return err
}

outputDir := "."
Expand Down
4 changes: 2 additions & 2 deletions src/pkg/bundle/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func (b *Bundle) PreDeployValidationTF() (string, string, string, error) {
config.BundleAlwaysPull = []string{config.BundleTF, config.BundleTFConfig}
filepaths, err := provider.LoadBundleMetadata()
if err != nil {
message.Warnf("@JPERRY error when loading the metadtaa of the .tf bundle: %s\n", err.Error())
message.Warnf("unable to load the metadata of the .tf bundle: %s\n", err.Error())
return "", "", "", err
}

Expand All @@ -272,7 +272,7 @@ func (b *Bundle) PreDeployValidationTF() (string, string, string, error) {
b.tfConfig = *tfConfig

//read the file at conifg.BundleTFConfig and unmarshal it
message.Infof("Reading uds-tf-config.yam at %s\n", filepaths[config.BundleTFConfig])
message.Infof("Reading uds-tf-config.yaml at %s\n", filepaths[config.BundleTFConfig])
bundleTFConfigYAML, err := os.ReadFile(filepaths[config.BundleTFConfig])
if err != nil {
return "", "", "", err
Expand Down

0 comments on commit d1cfe70

Please sign in to comment.