mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-09 08:42:33 -04:00
Change to explicit comparison with MagicCookieValue
This commit is contained in:
parent
3935703286
commit
010fa977cf
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ func decodeConfig(r io.Reader, c *config) error {
|
|||
func (c *config) Discover() error {
|
||||
// If we are already inside a plugin process we should not need to
|
||||
// discover anything.
|
||||
if os.Getenv(plugin.MagicCookieKey) != "" {
|
||||
if os.Getenv(plugin.MagicCookieKey) == plugin.MagicCookieValue {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue