mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-26 17:53:59 -04:00
Do not use Unsetenv
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
func TestPostProcessorConfigure(t *testing.T) {
|
||||
currentEnv := os.Getenv("ATLAS_TOKEN")
|
||||
os.Unsetenv("ATLAS_TOKEN")
|
||||
os.Setenv("ATLAS_TOKEN", "")
|
||||
defer os.Setenv("ATLAS_TOKEN", currentEnv)
|
||||
|
||||
var p PostProcessor
|
||||
|
||||
Reference in New Issue
Block a user