Skip to content

Commit d5deaa2

Browse files
committed
NullRef SShCreds bug
1 parent 2056e85 commit d5deaa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceManager/HDInsight/Commands.HDInsight/ManagementCommands/NewAzureHDInsightClusterCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public override void ExecuteCmdlet()
323323
parameters.RdpPassword = RdpCredential.Password.ConvertToString();
324324
}
325325

326-
if (OSType == OSType.Linux)
326+
if (OSType == OSType.Linux && SshCredential != null)
327327
{
328328
parameters.SshUserName = SshCredential.UserName;
329329
if (!string.IsNullOrEmpty(SshCredential.Password.ConvertToString()))

0 commit comments

Comments
 (0)