Commit ce8615da authored by Pengfei Ni's avatar Pengfei Ni

Set default vmtype to standard if not set

parent 07240b71
...@@ -160,6 +160,11 @@ func NewCloud(configReader io.Reader) (cloudprovider.Interface, error) { ...@@ -160,6 +160,11 @@ func NewCloud(configReader io.Reader) (cloudprovider.Interface, error) {
return nil, err return nil, err
} }
if config.VMType == "" {
// default to standard vmType if not set.
config.VMType = vmTypeStandard
}
env, err := auth.ParseAzureEnvironment(config.Cloud) env, err := auth.ParseAzureEnvironment(config.Cloud)
if err != nil { if err != nil {
return nil, err return nil, err
......
...@@ -864,6 +864,7 @@ func getTestCloud() (az *Cloud) { ...@@ -864,6 +864,7 @@ func getTestCloud() (az *Cloud) {
RouteTableName: "rt", RouteTableName: "rt",
PrimaryAvailabilitySetName: "as", PrimaryAvailabilitySetName: "as",
MaximumLoadBalancerRuleCount: 250, MaximumLoadBalancerRuleCount: 250,
VMType: vmTypeStandard,
}, },
} }
az.DisksClient = newFakeDisksClient() az.DisksClient = newFakeDisksClient()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment