PULUMI_CONFIG_PASSPHRASE now supports an enpty passphrase
This change allows you to run pulumi in non-interactive environments without a state passphrase.
e.g. the following will now work.
```
export PULUMI_CONFIG_PASSPHRASE=""
pulumi up --yes
```
Related to
@@ -30,7 +30,7 @@ import (
)
func readPassphrase(prompt string) (string, error) {
- if phrase := os.Getenv("PULUMI_CONFIG_PASSPHRASE"); phrase != "" {
+ if phrase, ok := os.LookupEnv("PULUMI_CONFIG_PASSPHRASE"); ok {
return phrase, nil
}
return cmdutil.ReadConsoleNoEcho(prompt)
