Skip to content

Commit aee4f17

Browse files
committed
rename jobId to InstanceId and fix resource string
1 parent eb5ead9 commit aee4f17

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/ServiceManagement/StorSimple/Commands.StorSimple/Cmdlets/DeviceJobs/GetAzureStorSimpleJob.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class GetAzureStorSimpleJob : StorSimpleCmdletBase
4646
/// </summary>
4747
[Parameter(Mandatory=true, Position = 0, ParameterSetName = StorSimpleCmdletParameterSet.IdentifyById,
4848
HelpMessage = StorSimpleCmdletHelpMessage.DeviceJobId)]
49-
public string JobId { get; set; }
49+
public string InstanceId { get; set; }
5050

5151
/// <summary>
5252
/// Filter jobs by their status.
@@ -107,13 +107,13 @@ public override void ExecuteCmdlet()
107107
}
108108

109109
// Make call to get device jobs.
110-
var response = StorSimpleClient.GetDeviceJobs(deviceId, Type, Status, JobId, fromDateTimeIsoString, toDateTimeIsoString, (int)Skip, (int)First);
110+
var response = StorSimpleClient.GetDeviceJobs(deviceId, Type, Status, InstanceId, fromDateTimeIsoString, toDateTimeIsoString, (int)Skip, (int)First);
111111

112112
if (ParameterSetName == StorSimpleCmdletParameterSet.IdentifyById)
113113
{
114114
if (response == null || response.DeviceJobList.Count < 1)
115115
{
116-
WriteVerbose(string.Format(Resources.NoDeviceJobFoundWithGivenIdMessage, JobId));
116+
WriteVerbose(string.Format(Resources.NoDeviceJobFoundWithGivenIdMessage, InstanceId));
117117
WriteObject(null);
118118
return;
119119
}
@@ -122,7 +122,7 @@ public override void ExecuteCmdlet()
122122
}
123123
else
124124
{
125-
WriteObject(response.DeviceJobList);
125+
WriteObject(response.DeviceJobList, true);
126126
WriteVerbose(string.Format(Resources.DeviceJobsReturnedCount, response.DeviceJobList.Count,
127127
response.DeviceJobList.Count > 1 ? "s" : string.Empty));
128128
if (response.NextPageUri != null

src/ServiceManagement/StorSimple/Commands.StorSimple/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/StorSimple/Commands.StorSimple/Properties/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@
430430
<value>Data0 configuration with Controller0 and Controller1 IP Addresses along with TimeZone and Primary DNS Server information is mandatory when configuring the device for the first time</value>
431431
</data>
432432
<data name="DeviceJobsNextPageFormatMessage" xml:space="preserve">
433-
<value>More jobs are available for your query. To access the next page of your result use \"-First {0} -Skip {1}\" in your commandlet</value>
433+
<value>More jobs are available for your query. To access the next page of your result use -First {0} -Skip {1} in your commandlet</value>
434434
</data>
435435
<data name="DeviceJobsNextPagewithNoFirstMessage" xml:space="preserve">
436436
<value>More jobs are available in the subsequent pages for your query. To access the next page use \"-Skip {0}\" in your commandlet</value>

0 commit comments

Comments
 (0)