Skip to content

Commit 1d74489

Browse files
committed
Fixed a problem where Default headnode size is passed in (backcompat fix)
1 parent 0c130e1 commit 1d74489

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ServiceManagement/HDInsight/Commands.HDInsight/Model/Commands/CommandImplementations/NewAzureHDInsightClusterCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using System;
1516
using System.Collections.Generic;
1617
using System.Linq;
1718
using System.Management.Automation;
@@ -184,7 +185,7 @@ internal ClusterCreateParametersV2 GetClusterCreateParameters()
184185
this.OozieMetastore.Credential.GetCleartextPassword());
185186
}
186187

187-
if (!string.IsNullOrEmpty(this.HeadNodeSize))
188+
if (!string.IsNullOrEmpty(this.HeadNodeSize) && !this.HeadNodeSize.Equals("Default", StringComparison.OrdinalIgnoreCase))
188189
{
189190
createClusterRequest.HeadNodeSize = this.HeadNodeSize;
190191
}

0 commit comments

Comments
 (0)