mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-31 18:38:22 -04:00
Update to address review feedback
This commit is contained in:
committed by
Wilken Rivera
parent
a6e0ddd4f4
commit
ed441c1806
+1
-1
@@ -113,7 +113,7 @@ func (m *Meta) GetConfig(cla *MetaArgs) (packer.Handler, int) {
|
||||
// This is an internal-only method that should be called by commands that don't have
|
||||
// a different mode when handling legacy JSON templates; mainly build, validate.
|
||||
func DisplayLegacyConfigWarning(ui packersdk.Ui) {
|
||||
if v, ok := os.LookupEnv("PACKER_LEGACY_MODE"); ok && strings.ToLower(v) == "on" {
|
||||
if v := os.Getenv("PACKER_LEGACY_MODE"); strings.ToLower(v) == "on" {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@ func init() {
|
||||
// By default PACKER_LEGACY_MODE=auto to enable automatic loading of vendored plugins.
|
||||
// In preparation for removing vendored plugins entirely we are providing users a flag to
|
||||
// to control if vendored plugins should be loaded or not.
|
||||
if v, ok := os.LookupEnv("PACKER_LEGACY_MODE"); ok && strings.ToLower(v) == "off" {
|
||||
if v := os.Getenv("PACKER_LEGACY_MODE"); strings.ToLower(v) == "off" {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user