remove unecessary check

This commit is contained in:
Adrien Delorme 2018-11-12 11:32:49 +01:00
parent 08e8b1850e
commit 1958ef6e81
1 changed files with 0 additions and 4 deletions

View File

@ -522,10 +522,6 @@ func assertRequiredParametersSet(c *Config, errs *packer.MultiError) {
errs = packer.MultiErrorAppend(errs, fmt.Errorf("A subscription_id must be specified when client_id & client_secret are")) errs = packer.MultiErrorAppend(errs, fmt.Errorf("A subscription_id must be specified when client_id & client_secret are"))
} }
if c.SubscriptionID != "" && c.ClientID == "" {
errs = packer.MultiErrorAppend(errs, fmt.Errorf("A subscription_id cannot be specified as it will be taken from MSI"+
" (client_id and client_secret are not set)"))
}
} }
///////////////////////////////////////////// /////////////////////////////////////////////