Skip to content

Commit 212820e

Browse files
authored
Merge pull request Azure#9862 from emgu-ms/failoverPowershellChanges
Fix Extra Output During Failover Database and Elastic Pool Cmdlet Execution
2 parents 316e0cb + 171949d commit 212820e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Sql/Sql/Database/Cmdlet/InvokeAzureSqlDatabaseFailover.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ protected override IEnumerable<AzureSqlDatabaseModel> PersistChanges(IEnumerable
8585
return entity;
8686
}
8787

88+
/// <summary>
89+
/// Returns false so the model object that was constructed by this cmdlet is not written out
90+
/// </summary>
91+
/// <returns>False since the model object should not be written out</returns>
92+
protected override bool WriteResult() { return false; }
93+
8894
/// <summary>
8995
/// Entry point for the cmdlet
9096
/// </summary>

src/Sql/Sql/Elastic Pools/Cmdlet/InvokeAzureSqlElasticPoolFailover.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ protected override IEnumerable<AzureSqlElasticPoolModel> PersistChanges(IEnumera
8585
return entity;
8686
}
8787

88+
/// <summary>
89+
/// Returns false so the model object that was constructed by this cmdlet is not written out
90+
/// </summary>
91+
/// <returns>False since the model object should not be written out</returns>
92+
protected override bool WriteResult() { return false; }
93+
8894
/// <summary>
8995
/// Entry point for the cmdlet
9096
/// </summary>

0 commit comments

Comments
 (0)