Skip to content

Commit d247248

Browse files
Made Changes on StatusCode Check
1 parent 998497b commit d247248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cohesity.Powershell/Cmdlets/Cluster/ConnectCohesityCluster.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ protected override void ProcessRecord()
259259
var sendSecurityCode = httpClient.SendAsync(emailMFARequest).Result;
260260
var sendSecurityCodeResponse = sendSecurityCode.Content.ReadAsStringAsync().Result;
261261

262-
if (sendSecurityCode.StatusCode != HttpStatusCode.Created)
262+
if (sendSecurityCode.StatusCode != HttpStatusCode.NoContent)
263263
{
264264
var accessCodeError = JsonConvert.DeserializeObject<ErrorProto>(sendSecurityCodeResponse);
265265
StringBuilder sb = new StringBuilder();

0 commit comments

Comments
 (0)