Skip to content

Commit

Permalink
Allow environment variables to be empty or whitespace. (Azure#2777)
Browse files Browse the repository at this point in the history
Environment variable values may be empty or whitespace.
Docker allows these values for environment variable:
"key1="
"key2=   "
  • Loading branch information
darobs authored Apr 7, 2020
1 parent 46c2ef0 commit b3a7134
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class EnvVar
public EnvVar(string key, string value)
{
this.Key = Preconditions.CheckNonWhiteSpace(key, nameof(key));
this.Value = Preconditions.CheckNonWhiteSpace(value, nameof(value));
this.Value = value ?? string.Empty;
}

public string Key { get; }
Expand Down

0 comments on commit b3a7134

Please sign in to comment.