Skip to content

Commit f86529d

Browse files
committed
Addressing code review comments.
1 parent f506f6e commit f86529d

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

src/ServiceManagement/Sql/Commands.SqlDatabase/Properties/Resources.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ServiceManagement/Sql/Commands.SqlDatabase/Properties/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
<comment>Parameter validation</comment>
123123
</data>
124124
<data name="CreateServerServerNotFound" xml:space="preserve">
125-
<value>Unable to retrieve newly created server '{0}' from the service.</value>
125+
<value>Unable to retrieve newly created server '{0}'.</value>
126126
</data>
127127
<data name="CredentialNotSpecified" xml:space="preserve">
128128
<value>The Sql Authenticate Credential was not specified.</value>

src/ServiceManagement/Sql/Commands.SqlDatabase/Server/Cmdlet/NewAzureSqlDatabaseServer.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,16 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Hyak.Common.TransientFaultHandling;
1516
using Microsoft.WindowsAzure.Commands.SqlDatabase.Model;
1617
using Microsoft.WindowsAzure.Commands.SqlDatabase.Properties;
17-
using Microsoft.Azure.Common.Internals;
1818
using Microsoft.WindowsAzure.Management.Sql;
1919
using Microsoft.WindowsAzure.Management.Sql.Models;
20-
using Hyak.Common;
2120
using System;
22-
using System.Management.Automation;
23-
using Hyak.Common.TransientFaultHandling;
2421
using System.Collections.Generic;
25-
using System.Linq;
2622
using System.Globalization;
23+
using System.Linq;
24+
using System.Management.Automation;
2725

2826
namespace Microsoft.WindowsAzure.Commands.SqlDatabase.Server.Cmdlet
2927
{
@@ -122,8 +120,7 @@ internal SqlDatabaseServerContext NewAzureSqlDatabaseServerProcess(
122120
Version = version.HasValue ? version.Value.ToString("F1") : null
123121
});
124122

125-
IEnumerable<Management.Sql.Models.Server> servers = sqlManagementClient.Servers.List().Servers;
126-
var newServer = servers.Where(s => s.Name == response.ServerName).FirstOrDefault();
123+
var newServer = sqlManagementClient.Servers.List().Servers.Where(s => s.Name == response.ServerName).FirstOrDefault();
127124

128125
if (newServer == null)
129126
{

0 commit comments

Comments
 (0)