Skip to content

Commit

Permalink
1. initial changes for registry module support
Browse files Browse the repository at this point in the history
2. fix issue of remote module containing local modules
  • Loading branch information
patilpankaj212 committed Jan 22, 2021
1 parent 1fe039d commit 3bc7f14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/cli/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ package cli

import (
"flag"
"io/ioutil"
"log"
"os"

"github.com/accurics/terrascan/pkg/config"
Expand Down Expand Up @@ -59,6 +61,11 @@ func Execute() {
}
}

// disable terraform logs when TF_LOG env variable is not set
if os.Getenv("TF_LOG") == "" {
log.SetOutput(ioutil.Discard)
}

if err := rootCmd.Execute(); err != nil {
os.Exit(1)
}
Expand Down

0 comments on commit 3bc7f14

Please sign in to comment.